claw-factory/truss-api-mcp
API testing & documentation MCP server — HTTP testing, OpenAPI parsing, mock servers, client generation
Platform-specific configuration:
{
"mcpServers": {
"truss-api-mcp": {
"command": "npx",
"args": [
"-y",
"truss-api-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://www.npmjs.com/package/truss-api-mcp) [](https://opensource.org/licenses/MIT)
API testing and documentation tools for Claude Code. Test endpoints, parse OpenAPI specs, validate responses, generate clients, and more — all from your AI assistant.
Run with npx (no install needed):
npx -y truss-api-mcpAdd to your claude_desktop_config.json or .claude/settings.json:
{
"mcpServers": {
"api-testing": {
"command": "npx",
"args": ["-y", "truss-api-mcp"]
}
}
}Add to your Cursor MCP settings:
{
"mcpServers": {
"api-testing": {
"command": "npx",
"args": ["-y", "truss-api-mcp"]
}
}
}---
| Tool | Description | |------|-------------| | test_endpoint | Send HTTP request and get structured response (status, headers, body, timing, size) | | parse_openapi | Parse an OpenAPI 3.x or Swagger 2.0 spec and list all endpoints | | validate_response | Validate API response against expected status and JSON Schema |
| Tool | Description | |------|-------------| | generate_openapi | Auto-generate OpenAPI spec from example requests/responses | | generate_tests | Generate API test suite (Jest, Vitest, or Pytest) | | mock_server | Generate mock server config from OpenAPI spec | | compare_specs | Diff two specs and find breaking changes | | generate_client | Generate typed API client (TypeScript, Python, Go) |
Add to your MCP configuration:
{
"mcpServers": {
"truss-api-testing": {
"command": "npx",
"args": ["-y", "truss-api-mcp"],
"env": {
"TRUSS_LICENSE_KEY": "your-key-here"
}
}
}
}git clLoading reviews...