mcp-api-toolkit
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-api-toolkit Parse the OpenAPI spec at https://api.example.com/openapi.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ MCP API Toolkit
Comprehensive API development and testing MCP server for Claude Code
MCP API Toolkit brings powerful API development capabilities to Claude Code through the Model Context Protocol. Think Postman + OpenAPI + AI-powered testing, all integrated into your Claude workflow.
โจ Features
๐ OpenAPI/Swagger Parsing - Import and validate API specifications
๐งช API Testing - Execute and validate API requests with AI insights
๐ Documentation Generation - Auto-generate beautiful API docs
๐ ๏ธ SDK Generation - Create TypeScript, Python, JavaScript SDKs automatically
๐ญ Mock Data - Generate realistic test data from schemas
โก Batch Testing - Test multiple endpoints at once
๐ Request Validation - Ensure requests/responses match schemas
๐ Performance Insights - Track response times and sizes
Related MCP server: OpenAPI MCP Server
๐ฆ Installation
NPM (Recommended)
npm install -g mcp-api-toolkitFrom Source
git clone https://github.com/yourusername/mcp-api-toolkit.git
cd mcp-api-toolkit
npm install
npm run build
npm link๐ง Configuration
Add to your Claude Code MCP settings:
macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"api-toolkit": {
"command": "mcp-api-toolkit"
}
}
}Or with npx:
{
"mcpServers": {
"api-toolkit": {
"command": "npx",
"args": ["-y", "mcp-api-toolkit"]
}
}
}Restart Claude Code to activate the MCP server.
๐ฏ Usage
1. Parse OpenAPI Specification
Parse this OpenAPI spec: https://api.example.com/openapi.jsonOr paste the spec directly:
Parse this OpenAPI spec:
{
"openapi": "3.0.0",
"info": { "title": "My API", "version": "1.0.0" },
...
}2. List API Endpoints
List all endpoints from the parsed spec3. Test an Endpoint
Test the GET /users endpoint with authentication headerClaude will use the test_api_endpoint tool:
GET https://api.example.com/users
Headers: { "Authorization": "Bearer token" }4. Generate SDK
Generate a TypeScript SDK from the parsed specClaude will create a fully-typed client library:
export class MyAPIClient {
async getUsers(config?: RequestConfig): Promise<User[]> {
// Auto-generated implementation
}
}5. Generate Documentation
Generate markdown documentation for this API6. Create Mock Data
Generate 5 mock user objects based on this schema:
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"age": { "type": "number" }
}
}๐ ๏ธ Available Tools
parse_openapi
Parse and validate OpenAPI/Swagger specifications (JSON, YAML, or URL).
Input:
input(string): OpenAPI spec as JSON/YAML or URLisUrl(boolean): Whether input is a URL
Output: Parsed specification with summary
list_endpoints
Extract all API endpoints from a specification.
Input:
spec(string): OpenAPI spec JSONfilterByTag(string, optional): Filter by tagfilterByMethod(string, optional): Filter by HTTP method
Output: List of endpoints with methods and paths
test_api_endpoint
Execute and validate API requests.
Input:
method(string): HTTP method (GET, POST, PUT, PATCH, DELETE)url(string): Full URL to testheaders(object, optional): HTTP headersbody(object, optional): Request bodyparams(object, optional): Query parametersexpectedStatus(number, optional): Expected HTTP statustimeout(number, optional): Timeout in ms (default: 30000)
Output: Response data, status, timing, validation results
generate_sdk
Generate client SDKs in multiple languages.
Input:
spec(string): OpenAPI spec JSONlanguage(string): typescript | python | javascript | goclientName(string, optional): Custom client class name
Output: Generated SDK code
generate_mock_data
Create mock data from JSON schemas.
Input:
schema(object): JSON Schema definitioncount(number, optional): Number of objects to generate
Output: Array of mock data objects
generate_api_docs
Generate markdown documentation from OpenAPI specs.
Input:
spec(string): OpenAPI spec JSONincludeExamples(boolean, optional): Include examples (default: true)
Output: Markdown documentation
validate_api_response
Validate responses against schemas.
Input:
response(object): API response dataschema(object): Expected schema
Output: Validation results
batch_test_endpoints
Test multiple endpoints at once.
Input:
spec(string): OpenAPI spec JSONbaseUrl(string, optional): Override base URLfilterByTag(string, optional): Test only tagged endpointsheaders(object, optional): Common headers
Output: Batch test results summary
๐ Examples
Example 1: Test a Public API
Parse the JSONPlaceholder API: https://jsonplaceholder.typicode.com/
Then test the GET /posts/1 endpointExample 2: Generate a Client Library
Parse this OpenAPI spec and generate a Python SDK:
{
"openapi": "3.0.0",
"info": { "title": "User API", "version": "1.0.0" },
"servers": [{ "url": "https://api.example.com" }],
"paths": {
"/users": {
"get": {
"summary": "List users",
"responses": {
"200": { "description": "Success" }
}
}
}
}
}Example 3: API Testing Workflow
1. Parse the Stripe API spec: https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json
2. List all payment-related endpoints
3. Generate TypeScript SDK
4. Create mock customer data๐จ Use Cases
API Development
Import existing OpenAPI specs
Test endpoints during development
Generate client libraries automatically
Create API documentation
API Testing
Validate API responses
Batch test endpoints for health checks
Performance testing with timing metrics
Mock data generation for testing
API Integration
Generate SDKs for easy integration
Test third-party APIs before integration
Validate API contracts
Document external APIs
Learning & Exploration
Explore public APIs (GitHub, Stripe, Twitter, etc.)
Understand API structures
Generate working code examples
Create educational documentation
๐๏ธ Architecture
mcp-api-toolkit/
โโโ src/
โ โโโ index.ts # Main MCP server
โ โโโ tools/ # MCP tool definitions
โ โโโ utils/
โ โ โโโ openapi-parser.ts # OpenAPI parsing
โ โ โโโ api-client.ts # HTTP client
โ โ โโโ sdk-generator.ts # SDK generation
โ โโโ types/
โ โโโ api.ts # TypeScript types
โโโ examples/ # Usage examples
โโโ docs/ # Documentation
โโโ tests/ # Unit tests๐ Security
No API credentials are stored
All requests are made on-demand
Rate limiting respect
Input validation with Zod
HTTPS-only for URL parsing
๐ค Contributing
Contributions are welcome! Please read our Contributing Guide first.
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit changes:
git commit -m 'Add amazing feature'Push to branch:
git push origin feature/amazing-featureOpen a Pull Request
๐ License
MIT License - see LICENSE file for details
๐ Star History
If you find this project useful, please consider giving it a star on GitHub!
๐ Links
๐ก Inspiration
Built to solve the API-first development workflow in 2025. Inspired by:
Postman's intuitive API testing
OpenAPI's standardization
Claude's AI-powered development assistance
๐ง Support
Documentation: docs/
Issues: GitHub Issues
Discussions: GitHub Discussions
Made with โค๏ธ for the Claude Code community
Supercharge your API development workflow with AI!
Available Tools
8 toolsbatch_test_endpointsB
Test multiple API endpoints from an OpenAPI spec in batch. Useful for smoke testing or API health checks.
Inputs: spec (required), baseUrl, headers, filterByTag.
generate_api_docsB
Generate markdown documentation from an OpenAPI specification. Creates human-readable API documentation with examples.
Inputs: spec (required), includeExamples.
generate_mock_dataC
Generate mock data based on a JSON schema or OpenAPI schema definition. Useful for testing and development.
Inputs: schema (required), count.
generate_sdkC
Generate a client SDK in TypeScript, Python, JavaScript, or Go from an OpenAPI specification. Creates ready-to-use client libraries with type safety.
Inputs: spec (required), language (required), clientName.
list_endpointsA
Extract and list all API endpoints from a previously parsed OpenAPI specification. Returns all paths, methods, summaries, and operation IDs.
Inputs: spec (required), filterByTag, filterByMethod.
parse_openapiB
Parse and validate an OpenAPI/Swagger specification from JSON/YAML string or URL. Returns detailed information about the API including endpoints, methods, and schemas.
Inputs: input (required), isUrl.
test_api_endpointB
Execute an API request and test an endpoint with optional validation. Returns response status, data, timing, and validation results.
Inputs: url (required), method (required), body, params, +3 more.
validate_api_responseC
Validate an API response against an OpenAPI schema definition. Checks if the response matches the expected schema.
Inputs: schema (required), response (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 8 tools
Most tools have distinct purposes: SDK generation, doc generation, validation, batch testing, parsing, listing, single endpoint testing, and mock data. However, test_api_endpoint and batch_test_endpoints overlap in testing functionality, and validate_api_response and test_api_endpoint both involve validation, which could cause slight confusion.
Tool names are mostly in snake_case with a verb_noun pattern (generate_sdk, generate_api_docs, validate_api_response, etc.). One deviation is parse_openapi (verb_noun but noun is OpenAPI rather than a typical object) and list_endpoints, but overall consistency is high.
With 8 tools, the count is well-scoped for an API toolkit. Each tool corresponds to a distinct, useful operation in the API development lifecycle, and there is no apparent redundancy.
The toolkit covers parsing, listing, testing (single and batch), validation, SDK generation, documentation, and mock data. It misses operations like comparing specs, transforming specs, or generating server stubs, but these are minor gaps for a client-side API toolkit.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context308 npm50MIT
- AlicenseNot gradedqualityDmaintenanceA generic MCP server that dynamically converts OpenAPI-defined REST APIs into tools for LLMs like Claude. It supports multiple authentication methods and transport protocols, enabling seamless interaction with any OpenAPI-compliant API.15 npmMIT
- AlicenseAqualityDmaintenanceA universal MCP server that integrates any API with Claude Desktop by pointing it at a Swagger/OpenAPI spec, automatically generating tools for interaction.344MIT
- AlicenseNot gradedqualityDmaintenanceConverts any OpenAPI/Swagger spec into an MCP server, exposing REST API endpoints as tools for Claude.MIT