rog0x/mcp-api-tools
MCP server for API testing: HTTP requests, endpoint health checks, JWT decode, URL parsing, security header analysis
Platform-specific configuration:
{
"mcpServers": {
"mcp-api-tools": {
"command": "npx",
"args": [
"-y",
"mcp-api-tools"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
HTTP/API testing tools for AI agents, built on the Model Context Protocol.
http_requestMake any HTTP request (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS) with full control over headers, body, authentication, and timeouts. Returns status code, response headers, body, and timing information.
api_healthCheck the health of multiple API endpoints in parallel. Returns HTTP status, response time, SSL certificate validity and expiry, and optional response body validation. Includes a summary with counts of healthy, unhealthy, and errored endpoints.
jwt_decodeDecode a JWT token without cryptographic verification. Returns the decoded header and payload, issued-at time, expiry time, and whether the token is currently expired.
url_parseParse a URL into its component parts (protocol, host, port, path, query parameters, hash) or build a URL from individual parts.
header_analyzerAnalyze HTTP response headers for security posture (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), caching directives, CORS configuration, and cookie attributes. Provides a letter grade for security. Can fetch headers from a live URL or analyze a provided headers object.
npm install
npm run buildAdd to your claude_desktop_config.json:
{
"mcpServers": {
"api-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-api-tools/dist/index.js"]
}
}
}claude mcp add api-tools node D:/products/mcp-servers/mcp-api-tools/dist/index.jsMake a POST request:
Use http_request to POST to https://httpbin.org/post with JSON body {"key": "value"}Check API health:
Use api_health to check these endpoints: https://api.github.com, https://httpbin.org/getDecode a JWT:
Use jwt_decode Loading reviews...