Skip to main content
Glama

MCP NPX Fetch

MCP NPX Fetch

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

InstallationFeaturesUsageDocumentationContributing


🚀 Features

  • 🌐 Universal Content Fetching: Supports HTML, JSON, plain text, and Markdown formats
  • 🔒 Custom Headers Support: Add authentication and custom headers to your requests
  • 🛠 Built-in Transformations: Automatic conversion between formats
  • High Performance: Built with modern JavaScript features and optimized for speed
  • 🔌 MCP Compatible: Seamlessly integrates with Claude Desktop and other MCP clients
  • 🎯 Type-Safe: Written in TypeScript with full type definitions

📦 Installation

NPM Global Installation

npm install -g @tokenizin/mcp-npx-fetch

Direct Usage with NPX

npx @tokenizin/mcp-npx-fetch

📚 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; }; }

🔧 Usage

CLI Usage

Start the MCP server directly:

mcp-npx-fetch

Or via npx:

npx @tokenizin/mcp-npx-fetch

Claude Desktop Integration

  1. Locate your Claude Desktop configuration file:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the following configuration to your mcpServers object:
{ "mcpServers": { "fetch": { "command": "npx", "args": ["-y", "@tokenizin/mcp-npx-fetch"], "env": {} } } }

💻 Local Development

  1. Clone the repository:
git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git cd mcp-npx-fetch
  1. Install dependencies:
npm install
  1. Start development mode:
npm run dev
  1. Run tests:
npm test

🛠 Technical Stack

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

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


Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

웹 콘텐츠를 다양한 형식(HTML, JSON, 마크다운, 일반 텍스트)으로 손쉽게 가져와 변환할 수 있는 강력한 MCP 서버입니다.

  1. 🚀 특징
    1. 📦 설치
      1. NPM 글로벌 설치
      2. NPX와 직접 사용
    2. 📚 문서
      1. 사용 가능한 도구
    3. 🔧 사용법
      1. CLI 사용법
      2. Claude 데스크톱 통합
    4. 💻 지역 개발
      1. 🛠 기술 스택
        1. 🤝 기여하기
          1. 📄 라이센스

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              MCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, PDF, DOCX (.docx), csv and more.
              Last updated -
              1
              396
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              An MCP server for fetching and transforming web content into various formats.
              Last updated -
              4
              7
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              An MCP server that extracts meaningful content from websites and converts HTML to high-quality Markdown, using Mozilla's Readability engine.
              Last updated -
              1
              5,513
              7
            • A
              security
              F
              license
              A
              quality
              An MCP server that converts Markdown to HTML, supporting both stdio and HTTP interfaces for easy integration with Cursor and other MCP clients.
              Last updated -
              1
              2

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/tokenizin-agency/mcp-npx-fetch'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server