mcp-server-fetch-typescript
A Model Context Protocol server that provides web content fetching and conversion capabilities.
mcp-server-fetch-typescript MCP Server
A Model Context Protocol server that provides web content fetching and conversion capabilities. This server implements a comprehensive web content retrieval system with support for various formats and rendering methods, making it ideal for tasks ranging from simple data extraction to sophisticated web scraping.
Features
Tools
-
get_raw_text
- Retrieve raw text content directly from URLs- Takes
url
as a required parameter pointing to text-based resources - Returns unprocessed text content without browser rendering
- Ideal for JSON, XML, CSV, TSV, or plain text files
- Best used when fast, direct access to source content is needed
- Takes
-
get_rendered_html
- Fetch fully rendered HTML content- Takes
url
as a required parameter - Returns complete HTML content after JavaScript execution
- Uses Playwright for headless browser rendering
- Essential for modern web applications and SPAs
- Takes
-
get_markdown
- Convert web content to Markdown format- Takes
url
as a required parameter - Returns well-formatted Markdown preserving structural elements
- Supports tables and definition lists
- Recommended for content archiving and documentation
- Takes
-
get_markdown_summary
- Extract and convert main content- Takes
url
as a required parameter - Returns clean Markdown focusing on main content
- Automatically removes navigation, headers, footers
- Perfect for article and blog post extraction
- Takes
Installation
As a Global Package
npm install -g mcp-server-fetch-typescript
As a Project Dependency
npm install mcp-server-fetch-typescript
Usage
Using with Claude Desktop
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"mcp-server-fetch-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-fetch-typescript"
]
}
}
or Add the following configuration:
git clone https://github.com/tatn/mcp-server-fetch-typescript.git
cd mcp-server-fetch-typescript
npm install
npm run build
"mcpServers": {
"mcp-server-fetch-typescript": {
"command": "node",
"args": [
"/path/to/mcp-server-fetch-typescript/build/index.js"
]
}
}
Debugging
To debug the MCP server:
npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.js
Related MCP Servers
View all browser_automation servers →Fetch
by modelcontextprotocol
A Model Context Protocol server that provides web content fetching capabilities, enabling LLMs to retrieve and process content from web pages.
markdownify-mcp
by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format.
mcp-playwright
by executeautomation
A Model Context Protocol server that provides browser automation capabilities using Playwright.
playwright-mcp
by microsoft
Playwright MCP is a Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots.
cursor-talk-to-figma-mcp
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
firecrawl-mcp-server
by mendableai
Firecrawl MCP Server is a Model Context Protocol server implementation that integrates with Firecrawl for web scraping capabilities.
ai-agent-marketplace-index-mcp
by AI-Agent-Hub
MCP Server for AI Agent Marketplace Index from DeepNLP, allowing AI assistants to search available AI agents by keywords or categories.