home / mcp / mcp-server-fetch-typescript mcp server
Provides web content fetching and conversion capabilities with raw text, rendered HTML, and Markdown outputs.
Configuration
View docs{
"mcpServers": {
"tatn-mcp-server-fetch-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-fetch-typescript"
]
}
}
}You deploy the MCP server fetch-typescript to retrieve and convert web content. It gives you raw text, fully rendered HTML, and Markdown outputs from URLs, enabling fast data extraction, documentation archiving, or article analysis in your automation pipelines.
You run the server locally or remotely and connect to it through an MCP client to fetch content. You can choose between raw text, rendered HTML, or Markdown formats depending on your task: raw text for JSON/XML/CSV, rendered HTML for dynamic pages, and Markdown for documentation-friendly output.
Prerequisites: You need Node.js and npm installed on your machine.
Install the MCP server package globally so you can run it from anywhere.
npm install -g mcp-server-fetch-typescriptAlternatively, install it as a project dependency in your project.
npm install mcp-server-fetch-typescriptUsage variants to run the MCP server locally are shown below. Choose one path that matches your setup.
# Option 1: Run directly with npx (temporary execution)
npx -y mcp-server-fetch-typescript# Option 2: Build from source and run the built index
git clone https://github.com/tatn/mcp-server-fetch-typescript.git
cd mcp-server-fetch-typescript
npm install
npm run build
# Start from the built file
node /path/to/mcp-server-fetch-typescript/build/index.jsTo debug the MCP server during development, you can use the inspector tool with either npm or node, as shown below.
npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript
```
```
npx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.jsRetrieve raw text content directly from URLs. Returns unprocessed text content without browser rendering, suitable for JSON, XML, CSV, TSV, or plain text files.
Fetch fully rendered HTML content. Executes JavaScript using a headless browser and returns complete HTML content.
Convert web content to Markdown format. Preserves structure, including tables and definition lists.
Extract and convert the main content to Markdown, removing navigation, headers, and footers for clean article or blog extraction.