Work90210/APIFold

🔗 Aggregators
0 Views
0 Installs

📇 ☁️ - Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "work90210-apifold": {
      "command": "npx",
      "args": [
        "-y",
        "work90210-apifold"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview


APIFold

Turn any REST API into an MCP server. No code required.

CI License Transformer npm Node

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 toolnpx 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
CommandDescription
apifold serve <spec>Start an MCP server from an OpenAPI spec
apifold serve --registry stripeStart 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
ComponentPathDescription
Transformerpackages/transformerOpenAPI to MCP conversion. Pure functions. MIT licensed.
Runtimeapps/runtimeExpress MCP server with SSE/HTTP, OAuth token refresh, access profiles.
Web Appapps/webNext.js dashboard. Import specs, manage credentials, analytics, custom domains.
CLIapps/cliStandalone CLI tool. npx apifold serve for local MCP servers.
Registrypackages/registryCurated catalog of 8 validated API specs with one-click deploy.
Typespackages/typesShared TypeScript type definitions.
UIpackages/uiDesign system and component library.

Available Commands

CommandDescription
pnpm devStart all services with hot-reload
pnpm buildBuild all packages
pnpm testRun tests
pnpm lintLint all packages
pnpm typecheckType-check all packages
pnpm formatFormat all files with Prettier
pnpm db:migrateRun database migrations
pnpm db:studioOpen 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

Related MCP Servers

thebrierfox/the-stall

📇 ☁️ - 209 pay-per-call AI capabilities via x402 USDC micropayments on Base mainnet. Covers US/global equities, crypto/DeFi analytics, options chains, dealer GEX, macro indicators, congressional trades, prediction markets, on-chain intelligence, EVM & Solana analysis, SEC filings, weather, aviation, and more. No API key — pay per call from $0.001 USDC.

🔗 Aggregators2 views
1mcp/agent

📇 ☁️ 🏠 🍎 🪟 🐧 - A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.

🔗 Aggregators0 views
2s-io/sdk

📇 ☁️ 🍎 🪟 🐧 - Unified API for AI agents — 180+ tools across geocoding, weather (NWS), climate stations (NOAA), earthquakes (USGS), tides (NOAA), points of interest (OpenStreetMap), patents (USPTO ODP), US case law (CourtListener / Free Law Project), Federal Register, Wikipedia, scientific papers (arXiv / PubMed / Semantic Scholar), AI summarize / translate / extract / screenshot / image-describe, image compression, DNS / WHOIS, crypto address-validate + EVM gas oracle, OFAC sanctions screening, US Census ACS demographics, airport / ZIP lookup. Sub-cent to a few cents per call in USDC on Base via x402 — no API keys, no signup. npx -y @2sio/mcp

🔗 Aggregators0 views
8randonpickart5/alderpost-mcp

📇 ☁️ - 8 bundled intelligence endpoints (security, company, threat, compliance, sales, sports, property, health) via x402 micropayments on Base.

🔗 Aggregators0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.