API 测试器 MCP 服务器
这是一个模型上下文协议 (MCP) 服务器,允许 Claude 代表您发出 API 请求。它提供了用于测试各种 API 的工具,包括与 OpenAI API 的专用集成。
特征
向任何 API 发出 HTTP 请求(GET、POST、PUT、DELETE)
无需在聊天中分享 API 密钥即可测试 OpenAI 的 GPT 模型
使用 DALL-E 生成图像
格式正确,方便阅读的回复
设置
先决条件
Python 3.10 或更高版本
MCP SDK 1.2.0 或更高版本
安装
安装所需的依赖项:
使用以下方法之一设置您的 OpenAI API 密钥:
选项 1:环境变量
选项 2:使用 .env 文件(推荐)
在项目目录中创建一个.env文件(从.env.example复制):
运行服务器
与 Claude 一起使用
一旦您的服务器运行,您就可以通过在 Claude Desktop 配置文件中进行配置将其连接到 Claude for Desktop。
示例提示
常规 API 测试
使用 OpenAI 工具
可用工具
通用 API 工具
get_request:向任何 URL 发出 GET 请求post_request:使用 JSON 主体发出 POST 请求put_request:使用 JSON 主体发出 PUT 请求delete_request:发出 DELETE 请求
OpenAI 专用工具
openai_chat_completion:使用 OpenAI 的聊天模型生成文本openai_image_generation:使用 DALL-E 生成图像
安全说明
您的 OpenAI API 密钥存储在服务器中,不会在聊天中暴露
API 使用将计入您的 OpenAI 配额,并可能产生费用
对于生产用途,请始终将 API 密钥设置为环境变量或使用
.env文件.env文件包含在.gitignore中,以防止意外提交您的 API 密钥
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
模型上下文协议服务器允许 Claude 代表您发出 API 请求,提供测试各种 API 的工具,包括 HTTP 请求和 OpenAI 集成,而无需在聊天中共享您的 API 密钥。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.Last updated -49
- -security-license-qualityA Model Context Protocol server that enables Claude to interact directly with Contentful CMS, allowing the AI to fetch content types and entries from a Contentful space.Last updated -2MIT License
- Asecurity-licenseAqualityA Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.Last updated -
- -security-license-qualityA Model Context Protocol server that gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter) for enhanced code analysis, problem-solving, and collaborative development through AI orchestration with conversations that continue across tasks.Last updated -9,242