Allows installation of the Fetch API MCP server through npm package management, making it accessible as a global command-line utility.
Fetch API MCP 服务器
这是一个基于MCP(Model Context Protocol)的API请求服务器,可以发送各种HTTP请求并返回结果。
功能
支持多种HTTP方法(GET, POST, PUT, DELETE等)
支持自定义请求头
支持表单数据提交
支持JSON数据提交
支持Cookie设置
自动处理不同类型的响应(JSON, 文本, 二进制)
Cursor安装
npm 安装
打开 cursor mcp 配置,添加配置项:
开发安装
调试
启动服务器
或者直接运行:
参数说明
MCP服务器接受以下参数:
url: 请求的URL(必填)method: 请求方法,默认为GETheaders: 请求头,对象格式formData: 表单数据,对象格式jsonData: JSON数据,对象格式cookies: Cookie数据,对象格式
返回数据
服务器返回以下数据:
status: HTTP状态码statusText: HTTP状态文本headers: 响应头data: 响应数据(会根据Content-Type自动解析为JSON、文本或Base64编码的二进制数据)
示例
发送GET请求
发送POST请求(JSON数据)
发送POST请求(表单数据)
带Cookie的请求
Tools
A Model Context Protocol server that enables sending customizable HTTP requests with support for various methods, headers, and data formats, returning parsed responses automatically.
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that provides web content fetching and conversion capabilities.Last updated -4663MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that intelligently fetches and processes web content, transforming websites and documentation into clean, structured markdown with nested URL crawling capabilities.Last updated -2255
- -security-license-qualityA server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.Last updated -
- Asecurity-licenseAqualityA Model Context Protocol server that provides tools for fetching and posting HTTP data, with built-in prompts for URL summarization and API analysis.Last updated -2