Endpoint Discovery
Automatically discover API endpoints from an OpenAPI spec, Swagger file, or by crawling a base URL. Returns a structured list of routes, methods, and parameters.
An MCP server that gives AI agents 9 tools to test, validate, and document your APIs. Endpoint discovery, request generation, response validation, contract testing, and OpenAPI generation — all callable programmatically.
$25/mo. No usage limits. Cancel anytime.
The Problem
Most teams test APIs manually with Postman collections that go stale, or they skip testing altogether and rely on users to find regressions. API documentation is even worse — written once at launch, outdated within weeks, never trusted again.
The Solution
TRUSS API Testing MCP lets AI agents test any REST API programmatically. From endpoint discovery to contract validation and OpenAPI generation — agents handle the entire testing lifecycle.
Automatically discover API endpoints from an OpenAPI spec, Swagger file, or by crawling a base URL. Returns a structured list of routes, methods, and parameters.
Generate valid and edge-case HTTP request payloads for any endpoint based on schema definitions. Includes boundary values, null fields, and type mismatches.
Check HTTP responses against expected schemas, status codes, and headers. Flag missing fields, type mismatches, and unexpected response shapes.
Verify that your API conforms to its OpenAPI contract. Detects breaking changes: removed fields, changed types, new required parameters, altered status codes.
Test API authentication flows: Bearer tokens, API keys, OAuth2, and cookie-based auth. Verify that protected endpoints reject unauthorized requests correctly.
Send concurrent requests to measure throughput, latency percentiles (p50/p95/p99), and error rates under load. Identify bottlenecks before they hit production.
Observe your API endpoints and auto-generate a complete OpenAPI 3.0 specification. Ready for Swagger UI, Postman import, or any API documentation portal.
Compare two versions of an API or OpenAPI spec and produce a structured diff of breaking vs non-breaking changes. Use in CI to block breaking deploys.
Generate a mock server from an OpenAPI spec that returns valid example responses. Lets frontend teams build against APIs before the backend is ready.
How It Works
TRUSS API Testing MCP is a standard MCP server. Install via npm, add to your agent config, and start testing any REST API immediately.
Install via npx. Add your target API's base URL and optional OpenAPI spec location to the MCP environment config.
Add to Claude Code, Cursor, or any MCP-compatible client. The 9 API testing tools are available immediately in your agent's tool list.
Ask your agent to "discover and test all API endpoints" or "check for breaking changes in this deploy." The agent calls the MCP tools, builds a test suite, and reports issues with exact request/response details.
# Claude Code / Cursor MCP config
{
"mcpServers": {
"api-testing": {
"command": "npx",
"args": ["truss-api-mcp"],
"env": {
"API_BASE_URL": "https://api.yourservice.com",
"OPENAPI_SPEC_URL": "https://api.yourservice.com/openapi.json",
"TRUSS_API_KEY": "your-api-key"
}
}
}
}
Pricing
One plan. Unlimited API testing. $25/mo flat.
Unlimited API testing for one developer or CI environment.
Tool Reference
FAQ
What APIs can the API Testing MCP server test?
Any REST API — public or private, local dev server or production. Provide a base URL and optional OpenAPI spec. The agent uses discover_endpoints to map all available routes before testing.
How does AI API testing differ from Postman or manual testing?
Postman requires you to manually build and maintain test collections. With MCP, your AI agent actively reasons about what to test, generates edge cases you'd miss manually, and can update its test suite based on API changes automatically.
Can it generate OpenAPI documentation automatically?
Yes. The generate_openapi tool observes your API, infers request/response schemas, and produces a standards-compliant OpenAPI 3.0 specification ready for Swagger UI, Postman, or any API portal.
Does it work with Claude Code and Cursor?
Yes. TRUSS API Testing MCP is a standard MCP server. Add it to your mcpServers config in Claude Code, Cursor, or any MCP-compatible client and the 9 tools appear immediately.
Give your AI agents the tools to discover, test, and document any API automatically. Install in 60 seconds.
Get API Testing MCP — $25/moFlat $25/mo. No usage limits. Cancel anytime.