Prerequisites
- Python 3.11+ installed on your machine
- An OpenAPI specification for the API you want to wrap (JSON or YAML)
- The Cat API (specification) — Cat images, breeds, and facts. 18 endpoints, some public, some require a free API key
- JSONPlaceholder (specification) — Fake REST API for testing. 5 endpoints, fully public, no authentication required
Step 1: Generate your server
Open the dashboard
Go to mcpblacksmith.com/dashboard and create a new project.
Upload your specification
Drag and drop your OpenAPI specification file (JSON or YAML) into the upload zone. MCP Blacksmith supports OpenAPI 2.0 (Swagger), 3.0, 3.1, and 3.2.
Configure
Optionally enable the Metadata Filter (free) to remove read-only and server-generated fields, or paid enhancement passes to optimize tool descriptions, parameters, and constraints for AI consumption. See Enhancement Passes for details.
Generate
Click Generate. MCP Blacksmith analyzes your specification, extracts all operations, builds typed models, configures authentication, and generates the complete server code.
Step 2: Install dependencies
Step 3: Configure credentials
If your API requires authentication, open the.env file and fill in your credentials:
.env
.env file is pre-configured with the correct variable names for your API’s authentication scheme. You only need to configure the credentials for the tools you intend to use. If a tool requires credentials that are not provided, a warning is logged and the request will likely be rejected by the upstream API — unless the endpoint is public and does not require authentication.
See Authentication for details on each authentication type.
Step 4: Run the server
stdio transport — the standard for local MCP connections. You’ll see output like:
Step 5: Connect to an MCP client
Add your server to your MCP client’s configuration. Most clients use a JSON configuration file:What’s next?
Server structure
Understand what each generated file does.
Authentication
Configure OAuth2, API keys, JWT, and more.
Security features
Circuit breakers, rate limiting, and retries.
Enhancement passes
Optimize your server with free and AI-driven passes.