Repository inventory

mcp-com-ai/api-to-mcp-skills

Skills indexed from this repository, with install-style signals scoped to the repo.
1 skills2 GitHub stars0 weekly installsGitHubOwner profile

Overview

This skill converts OpenAPI v3 specifications into fully functional MCP (Model Context Protocol) servers using the HAPI CLI. It requires no custom code and supports local development, Docker-based self-hosting, and Cloudflare Workers deployment. Use it to expose existing API functionality as MCP tools or to deploy API-backed services across multiple hosting targets.

How this skill works

The tool validates an OpenAPI v3 spec and generates an MCP server wrapper that proxies calls to your backend API. In headless mode it maps OpenAPI operations to MCP tools and exposes a Streamable HTTP transport at /mcp for JSON-RPC and streaming responses. You can run the generated server locally, inside Docker, or deploy it to Cloudflare Workers via built-in CLI commands.

When to use it

  • You have an OpenAPI v3 spec and want MCP-compatible tool endpoints with zero code.
  • You need to test or demo API-backed MCP tools locally before deployment.
  • You want to deploy API-based MCP servers to Cloudflare Workers for low-friction hosting.
  • You prefer a Docker-based self-hosted MCP server for production control.
  • You need streaming responses (SSE) or JSON-RPC over HTTP for model integrations.

Best practices

  • Confirm your OpenAPI spec is v3.x and resolves any $ref or schema errors before conversion.
  • Use --headless when proxying an existing backend to avoid serving the docs UI.
  • Validate /health and /mcp/ping after startup to ensure the service is healthy.
  • Test at least one tool call through the /mcp transport to verify end-to-end behavior.
  • Include clear error messages in your backend so the MCP wrapper can surface actionable errors.

Example use cases

  • Wrap a public API (e.g., Petstore) as MCP tools for model-driven workflows and demos.
  • Rapidly expose internal microservices as MCP tools for team experimentation.
  • Deploy an API facade to Cloudflare Workers to minimize latency and maintenance.
  • Run a self-hosted Docker MCP server for staging or production with controlled networking.
  • Stream long-running operation outputs via SSE through the /mcp endpoint for real-time models.

FAQ

No. HAPI requires OpenAPI v3.0 or later; convert v2 specs to v3 before using the tool.

How do I verify the MCP server is working after startup?

Check /health returns 200 and /mcp/ping returns pong, then make a POST /mcp JSON-RPC call to exercise a tool.

Can I deploy to Cloudflare Workers without a HAPI account?

You must authenticate with hapi login for Cloudflare deployments; Docker runs do not require that login.

1 skills

More from this maintainer
Other repositories and skills published under the same GitHub owner.
Skills library
Jump back to the full directory or explore grouped topics.
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational