MCP.so
登录

MCP Api Tester

@xingonliu

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

xingonliu

提交者

xingon liu

关于 MCP Api Tester

一键测试任意 API,自动生成 TypeScript 类型定义! 还在手动调用接口、复制响应、再粘贴到 quicktype.io 生成类型? 现在,只需在 Cursor 或 Claude 中输入一条指令,即可: ✅ 发送 GET/POST/PUT 等任意 HTTP 请求 ✅ 查看实时响应状态与数据预览 ✅ 自动将返回的 JSON 转换为精准的 TypeScript 接口 ✅ 支持自定义 Headers、请求体和期望状态码

MCP Api Tester 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "api-tester": {
      "command": "npx",
      "args": [
        "mcp-api-tester"
      ]
    }
  }
}

MCP Api Tester 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Mcp Api Tester?

Mcp Api Tester is an MCP server that tests arbitrary HTTP APIs and automatically generates TypeScript type definitions from the responses. It is built for developers using MCP clients to quickly inspect and type-check API endpoints.

How to use Mcp Api Tester?

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.

Key features of Mcp Api Tester

  • 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.

Use cases of Mcp Api Tester

  • Rapidly prototype API integrations by testing endpoints from an MCP client.
  • Generate TypeScript type definitions for undocumented or third-party APIs.
  • Validate API responses and debug issues directly within your MCP environment.

常见问题

1

What does the apiTester tool do?

The `apiTester` tool accepts a URL, HTTP method, headers, and body, then sends the request and returns the API response along with automatically generated TypeScript type definitions.

2

How do I install Mcp Api Tester?

Install globally with `npm install -g mcp-api-tester`, or locally with `npm install mcp-api-tester`. You can also clone the repository and build from source.

3

What transport modes does it support?

Mcp Api Tester supports two transport modes: HTTP (defaults to `http://localhost:3000/mcp`) and stdio (the standard MCP transport).

4

How do I configure it in my MCP client?

Add an entry to your `mcpServers` configuration with the command `mcp-api-tester` (for global install) or using `node` with the path to `dist/stdio-server.js`. You can also use `npx mcp-api-tester`.

5

Can I test any HTTP API?

Yes, any HTTP API can be tested by providing the URL, method, headers, and request body as inputs to the `apiTester` tool.

评论

开发工具 分类下的更多 MCP 服务器