Mcp Api Tester
About
一键测试任意 API,自动生成 TypeScript 类型定义! 还在手动调用接口、复制响应、再粘贴到 quicktype.io 生成类型? 现在,只需在 Cursor 或 Claude 中输入一条指令,即可: ✅ 发送 GET/POST/PUT 等任意 HTTP 请求 ✅ 查看实时响应状态与数据预览 ✅ 自动将返回的 JSON 转换为精准的 TypeScript 接口 ✅ 支持自定义 Headers、请求体和期望状态码
Details
- Author
- xingonliu
- GitHub stars
- 3
- Downloads
- 164
- Categories
- Developer Tools
Jump to
- Tests any HTTP API with custom URL, method, headers, and body.
- Automatically generates TypeScript interfaces from API responses.
- Supports both HTTP and stdio transport modes.
- Easy installation via npm (global or local).
- Includes a dedicated apiTester MCP tool.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Mcp Api TesterCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install globally or locally via npm, then run the mcp-api-tester command (or use npx). For development, you can start the server in HTTP mode (npm run dev) on http://localhost:3000/mcp or in stdio mode (npm run dev:stdio). Add the server to your MCP client configuration with the command mcp-api-tester or a path to the compiled stdio-server.js.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp api tester": {
"api-tester": {
"command": "npx",
"args": [
"mcp-api-tester"
]
}
}
}
}
McpServers
{
"api-tester": {
"command": "npx",
"args": [
"mcp-api-tester"
]
}
}
MCP API Tester Server
这是一个基于 Model Context Protocol (MCP) 的 API 测试工具服务器。它可以测试任意 HTTP API 并自动生成 TypeScript 类型定义。安装
全局安装
``bash
npm install -g mcp-api-tester
`
本地安装
`bash
npm install mcp-api-tester
`
从源码安装
`bash
git clone https://github.com/xingonliu/api-tester
cd mcp-api-tester
npm install
npm run build
`
使用方法
作为 npm 包使用
安装后,你可以通过以下方式运行:
``bashSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





