@gongrzhe/server-api-explorer
v1.0.0
Published
Interactive API Explorer MCP App Server with Postman-like request builder and response viewer
Readme
API Explorer MCP Server
Interactive Postman-like API request builder and response viewer for testing HTTP endpoints in chat.
Features
- Interactive Request Builder - Build HTTP requests with method, URL, headers, and body directly in the UI
- Full HTTP Support - Send GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS requests
- Response Inspection - View response status, headers, body, content-type, and execution time
- Custom Headers - Add arbitrary HTTP headers to requests for authentication and API testing
- Error Handling - Comprehensive error reporting with 30-second request timeout
- Real-time Results - Instantly see API responses and debug endpoints without leaving chat
Installation
npm install @gongrzhe/server-api-explorerUsage
As a CLI
npx @gongrzhe/server-api-explorerClaude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"api-explorer": {
"command": "npx",
"args": ["-y", "@gongrzhe/server-api-explorer"]
}
}
}Claude Code Configuration
claude mcp add api-explorer -- npx -y @gongrzhe/server-api-explorerTools
send-request
Sends an HTTP request to the specified URL and returns the response including status, headers, and body.
Input Parameters:
method(required) - HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)url(required) - The URL to send the request toheaders(optional) - HTTP headers as key-value pairsbody(optional) - Request body (for POST, PUT, PATCH)
Output:
status- HTTP status codestatusText- Status text (e.g., "OK", "Not Found")headers- Response headers as key-value pairsbody- Response body textcontentType- Content-Type header valueexecutionTimeMs- Request execution time in millisecondserror(optional) - Error message if request failed
Example Prompt
Send a GET request to https://jsonplaceholder.typicode.com/posts/1License
MIT
