Fetch API MCP Server
Allows installation of the Fetch API MCP server through npm package management, making it accessible as a global command-line utility.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fetch API MCP Serverfetch https://api.github.com/repos/glama-ai/mcp with headers Authorization: Bearer token123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fetch API MCP 服务器
这是一个基于MCP(Model Context Protocol)的API请求服务器,可以发送各种HTTP请求并返回结果。
功能
支持多种HTTP方法(GET, POST, PUT, DELETE等)
支持自定义请求头
支持表单数据提交
支持JSON数据提交
支持Cookie设置
自动处理不同类型的响应(JSON, 文本, 二进制)
Related MCP server: MCP Boilerplate
Cursor安装
npm 安装
npm install -g fetch-api-mcp打开 cursor mcp 配置,添加配置项:
"fetch-api": {
"command": "mcp-server-fetch-api"
}开发安装
npm install调试
启动服务器
npm start或者直接运行:
node src/index.js参数说明
MCP服务器接受以下参数:
url: 请求的URL(必填)method: 请求方法,默认为GETheaders: 请求头,对象格式formData: 表单数据,对象格式jsonData: JSON数据,对象格式cookies: Cookie数据,对象格式
返回数据
服务器返回以下数据:
status: HTTP状态码statusText: HTTP状态文本headers: 响应头data: 响应数据(会根据Content-Type自动解析为JSON、文本或Base64编码的二进制数据)
示例
发送GET请求
{
"url": "https://api.example.com/data",
"method": "GET",
"headers": {
"User-Agent": "MCP-Fetch-API/1.0"
}
}发送POST请求(JSON数据)
{
"url": "https://api.example.com/submit",
"method": "POST",
"headers": {
"User-Agent": "MCP-Fetch-API/1.0"
},
"jsonData": {
"name": "测试用户",
"email": "test@example.com"
}
}发送POST请求(表单数据)
{
"url": "https://api.example.com/form",
"method": "POST",
"formData": {
"username": "testuser",
"password": "password123"
}
}带Cookie的请求
{
"url": "https://api.example.com/profile",
"method": "GET",
"cookies": {
"session": "abc123",
"user_id": "12345"
}
}Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.Last updated
- Alicense-qualityDmaintenanceA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.Last updated1711MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server that provides secure curl command execution capabilities, allowing AI assistants to make HTTP requests with configurable parameters and built-in security protections.Last updated4
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools for fetching and posting HTTP data, with built-in prompts for URL summarization and API analysis.Last updated2
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jethroHuang/fetch-api-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server