Implementation tutorials
Build production MCP endpoints from real API contracts.
Practical, copyable guides for generating MCP from OpenAPI, adding auth, testing endpoint behavior, exporting SDKs, and adapting common API shapes.
Generate an MCP server from OpenAPI
A practical tutorial for turning an OpenAPI or Swagger spec into a hosted MCP endpoint agents can inspect and call.
What you will ship
You will have a hosted MCP endpoint with initialize, tools/list, tools/call, search_docs, and execute ready for local testing.
Add auth to a generated MCP server
Configure API keys, bearer tokens, and OAuth-style credentials for generated MCP tools without leaking secrets into tool metadata.
Test MCP endpoints before production
A preflight checklist for generated MCP endpoints: initialize, tools/list, schema validation, auth failure, safe execution, and logging.
Publish an SDK from a generated MCP endpoint
Export a generated SDK bundle, verify its docs and tests, and prepare package publishing without disconnecting it from the hosted MCP endpoint.
Build an MCP server for Swagger Petstore
Use the public Petstore OpenAPI spec to create a safe demo MCP server for search_docs, execute, and read-only endpoint testing.
Build an MCP server for a GitHub-like API
Turn repository, issue, pull request, and workflow endpoints into agent tools with safe read defaults and reviewed write actions.
Build an MCP server for a Stripe-like API
Create payment and billing MCP tools with test-mode credentials, strict auth boundaries, idempotency, and safe production checks.
Build an MCP server for internal APIs
Expose internal REST APIs to agents with narrow endpoint selection, network boundaries, service credentials, and audit-friendly runtime logs.
Troubleshoot OpenAPI to MCP generation
Fix common OpenAPI to MCP generation issues: missing specs, invalid schemas, auth confusion, oversized tool lists, and broken execute calls.