Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Work90210/APIFold MCP server](https://glama.ai/mcp/servers/Work90210/APIFold/badges/score.svg)](https://glama.ai/mcp/servers/Work90210/APIFold) πŸ“‡ ☁️ - Turn any REST API into a hosted MCP server.

README.md

<br /> <p align="center"> <a href="https://apifold.dev" target="_blank"><img width="260" src="public/logo.svg" alt="APIFold"></a> <br /> <br /> <b>Turn any REST API into an MCP server. No code required.</b> <br /> <br /> </p>

![CI](https://github.com/Work90210/APIFold/actions) ![License](./LICENSE) ![Transformer](./packages/transformer/LICENSE) ![npm](https://www.npmjs.com/package/@apifold/transformer) ![Node](https://nodejs.org)

APIFold reads an OpenAPI 3.x or Swagger 2.x specification and generates a live, production-ready MCP server endpoint. AI agents β€” Claude, Cursor, Copilot, or any MCP-compatible client β€” can connect immediately. Tool calls execute real HTTP requests to real upstream APIs with securely stored credentials. No stubs, no mocks, no glue code.

Quick Start

CLI (fastest)

npx apifold serve ./your-openapi-spec.yaml --base-url https://api.example.com

One command. Your spec becomes a running MCP server with SSE transport on localhost:3000. Connect Claude or Cursor immediately.

From the API Registry

npx apifold serve --registry stripe --base-url https://api.stripe.com

Ships with 8 pre-configured API specs: Stripe, GitHub, Slack, HubSpot, Twilio, OpenAI, Notion, and Petstore.

Hosted Platform

  1. Sign up at apifold.dev
  2. Import a spec (URL, file upload, or browse the registry)
  3. Copy the connection snippet into Claude Desktop or Cursor
  4. Your MCP server is live with a unique endpoint URL

Features

  • OpenAPI 3.x + Swagger 2.0 β€” auto-converts Swagger 2.0 specs transparently
  • CLI tool β€” npx apifold serve for zero-config local MCP servers
  • API registry β€” one-click deploy from 8 curated API specs
  • OAuth 2.0 β€” Authorization Code (PKCE), Client Credentials, 8 provider presets, auto token refresh
  • Access profiles β€” tool-level permissions (Read Only / Read-Write / Full Access)
  • Analytics β€” call volume, latency percentiles, error breakdown, usage quotas
  • Custom domains β€” use mcp.yourcompany.com with DNS verification
  • Unique endpoint IDs β€” cryptographic, unguessable URLs per server
  • SSE + Streamable HTTP β€” both MCP transport modes supported
  • Vault encryption β€” AES-256-GCM for all stored credentials
  • SSRF protection β€” DNS pinning, redirect blocking, private IP rejection

CLI

npm install -g @apifold/cli

| Command | Description | |---------|-------------| | apifold serve <spec> | Start an MCP server from an OpenAPI spec | | apifold serve --registry stripe | Start from a registry spec | | apifold transform <spec> | Output MCP tool definitions as JSON | | apifold validate <spec> | Parse-only validation with warnings | | apifold init [spec] | Generate an apifold.config.yaml template |

Config file

# apifold.config.yaml
spec: ./openapi/stripe.yaml
port: 3001
transport: sse
baseUrl: https://api.stripe.com
auth:
  type: bearer
  token: ${STRIPE_API_KEY}
filters:
  tags: [payments, customers]
  methods: [get, post]

Self-Hosting

Development

git clone https://github.com/Work90210/APIFold.git
cd APIFold
pnpm install
cp .env.example .env
docker compose -f infra/docker-compose.dev.yml up -d
pnpm dev

Open http://localhost:3000 to access the dashboard.

Production

cp .env.example .env
# Edit .env with your production values
docker compose -f infra/docker-compose.yml up -d

Using the Transformer Library

The core conversion logic is a standalone MIT-licensed npm package:

npm install @apifold/transformer
import { parseSpec, transformSpec, autoConvert } from "@apifold/transformer";

// Auto-convert Swagger 2.0 if needed
const { spec } = await autoConvert(rawSpec);

// Parse and transform
const parsed = parseSpec({ spec });
const { tools } = transformSpec({ spec: parsed.spec });
// tools = MCPToolDefinition[] ready for any MCP server

Architecture

graph LR
    Spec["OpenAPI / Swagger\nSpec"] --> Transformer

    subgraph MT["APIFold"]
        Transformer["Transformer\n(MIT lib)"]
        Transformer --> Runtime["Runtime\nExpress + SSE"]
        Web["Web App\nNext.js"] --> DB["Postgres 16\nRedis 7"]
        Runtime --> DB
        CLI["CLI Tool\nnpx apifold"]
        Registry["API Registry\n8 specs"]
    end

    Runtime --> Upstream["Upstream API\n(Stripe, GitHub, etc.)"]
    Agent["AI Agent\nClaude, Cursor,\nCopilot, etc."] -- "MCP / SSE" --> Runtime

| Component | Path | Description | |-----------|------|-------------| | Transformer | packages/transformer | OpenAPI to MCP conversion. Pure functions. MIT licensed. | | Runtime | apps/runtime | Express MCP server with SSE/HTTP, OAuth token refresh, access profiles. | | Web App | apps/web | Next.js dashboard. Import specs, manage credentials, analytics, custom domains. | | CLI | apps/cli | Standalone CLI tool. npx apifold serve for local MCP servers. | | Registry | packages/registry | Curated catalog of 8 validated API specs with one-click deploy. | | Types | packages/types | Shared TypeScript type definitions. | | UI | packages/ui | Design system and component library. |

Available Commands

| Command | Description | |---------|-------------| | pnpm dev | Start all services with hot-reload | | pnpm build | Build all packages | | pnpm test | Run tests | | pnpm lint | Lint all packages | | pnpm typecheck | Type-check all packages | | pnpm format | Format all files with Prettier | | pnpm db:migrate | Run database migrations | | pnpm db:studio | Open Drizzle Studio |

Contributing

All code contributions must go through a pull request and be approved before merging. See the contribution guide.

Want to add an API to the registry? See packages/registry/CONTRIBUTING.md.

Security

For security issues, please refer to our security policy. Do not post security vulnerabilities as public GitHub issues.

License

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.