@mauriciodmo/fetch-mcp
v1.0.0
Published
A Model Context Protocol (MCP) server that provides capabilities to fetch web resources using various HTTP methods.
Downloads
67
Maintainers
Readme
Fetch MCP Server
A Model Context Protocol (MCP) server that provides capabilities to fetch web resources using various HTTP methods.
Features
- Fetch Tool: Allows fetching data from any URL with support for:
- Methods:
GET,POST,PUT,DELETE - Custom Headers
- Request Body
- Content Handling: JSON, Text, Images, and PDFs.
- Methods:
Setup
Prerequisites
- Bun installed on your machine.
Installation
bun installDevelopment
To run the server with the MCP Inspector for testing:
bun run devProduction
To build and run the server:
bun run build
bun run startRunning with MCP Clients
To use this server with a client like Claude Desktop, add the following to your configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"fetch-mcp": {
"command": "bun",
"args": ["PROJECT_PATH/src/index.ts"]
}
}
}Note: Replace PROJECT_PATH with the absolute path to the directory where this project is located.
Tools
fetch
Fetches data from a specified URL.
Input Arguments:
url(string): The URL to fetch data from.method(enum): HTTP method to use (GET,POST,PUT,DELETE). Default isGET.headers(object, optional): HTTP headers to include in the request.body(string, optional): Request body forPOSTorPUTrequests.
