Skip to content

LLiuZheng/fetch-mcp

 
 

Repository files navigation

MCP NPX Fetch

A HTTP transportation version of https://github.com/tokenizin-agency/mcp-npx-fetch. It's a MCP server that will fetch url and covert to the following format: HTLM, Text, Markdown, JSON

💻 Local Development

  1. Install dependencies:
npm install
  1. Start local deployment
npm rum build
npm start
  1. Get MCP http URL

The MCP should be hosted at http://localhost:8000/mcp.

📚 Documentation

Available Tools

fetch_html

Fetches and returns raw HTML content from any URL.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_json

Fetches and parses JSON data from any URL.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_txt

Fetches and returns clean plain text content, removing HTML tags and scripts.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_markdown

Fetches content and converts it to well-formatted Markdown.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 51.4%
  • JavaScript 48.6%