What is mcp-api-tester Tools & Interfaces?
mcp-api-tester Tools & Interfaces is a set of MCP tools that enable a Large Language Model (LLM) to perform automated API testing. It provides interfaces for reading API documentation, selecting endpoints, and sending real HTTP requests via the net/http package, targeting developers who want to quickly identify potential issues in their APIs.
How to use mcp-api-tester Tools & Interfaces?
The tools are invoked via MCP tool calls. For example, to use the ReadOpenAPIDocument tool, send a JSON-RPC request with method: "tools/call" and parameters including the tool name and arguments such as an absolute path to the OpenAPI file. Similarly, ListAllAPIFromDocument can be called without arguments. The README recommends first integrating the three minimal viable tools (listAllAPIFromDocument, getSingleAPIDetail, callNetHTTP), then connecting the LLM to use them, and optionally adding validation, logging, environment management, and fuzz testing tools.
Key features of mcp-api-tester Tools & Interfaces
- Minimal viable tools: list endpoints, get API details, send HTTP requests
- Supports reading OpenAPI documents via
ReadOpenAPIDocument tool
- Advanced tools for schema validation and JSON parsing
- Test result logging and historical test querying
- Authentication credential management and test data reset
- Fuzz/edge case input generation for stress testing
Use cases of mcp-api-tester Tools & Interfaces
- Listing all available APIs from documentation and browsing endpoints
- Retrieving detailed parameter and response schemas for a specific API
- Executing real HTTP test calls against development/sandbox environments
- Validating response bodies against documented schemas for correctness
- Conducting security and stress tests with automatically generated extreme inputs
Comments