MCPify — the MCP server generator
MCP server generator · Open Source · npm

Stop Hand-Writing MCP Servers. Use an MCP Server Generator Instead.

MCPify is the MCP server generator that takes your OpenAPI spec, database schema, or whole codebase and produces a working MCP server in seconds — so your AI agents can finally call your API without you writing a line of MCP boilerplate.

Generate your MCP server with MCPify

If you've hand-written an MCP server, you already know the pain

Let's be honest: writing an MCP server by hand is a slog. You sit there mapping every endpoint to a tool definition, hand-rolling JSON schemas, describing parameters so Claude or GPT actually knows what to do with them, and then re-doing half of it when your API changes. It's slow, it's error-prone, and it's the exact kind of busywork that should've been automated years ago.

And it gets worse the moment your API grows. Every new endpoint means a new tool. Every schema change means drift between what your API actually accepts and what your agent thinks it accepts. Before you know it, your agent is hallucinating parameters that don't exist, or failing on endpoints you forgot to expose. That's not a "fun MCP project" anymore — that's a maintenance tax you pay every single sprint.

Here's the thing though: you already have everything needed to describe your API to an agent. Your OpenAPI spec. Your Prisma schema. Your routes. You just need an MCP server generator to do the boring part for you. That's exactly what MCPify is.

What is MCPify?

MCPify is an open-source AI enablement compiler — think of it as the MCP server generator for the rest of us. Built by Amarnath and maintained as a community project on GitHub, it scans the parts of your application that matter to agents and compiles them into a runnable MCP server, complete with typed tools, permission-aware boundaries, and descriptions that agents actually understand.

It's a single npm package (mcpify-cli) with no installation required — you run it with npx, point it at your project, and it does the analysis and generation for you. The philosophy is simple: your app stays untouched; MCPify just reads it and emits the MCP layer.

OpenAPI → MCPDrop in a spec, ship a typed MCP server in seconds. Swagger, OpenAPI v2/v3, whatever you've got.
Codebase analysisDeep AST analysis of Express, Fastify, NestJS, and Next.js apps surfaces every callable action — even inline handlers.
Schema intelligencePoint it at Prisma, Drizzle, or Mongoose schemas and get safe, queryable database tools instead of raw SQL exposure.
Self-updating syncMCP definitions regenerate on every commit, so tool drift stops being a thing you worry about.

Key features, with concrete examples

1. Generate from OpenAPI — the fastest path

You have a spec. MCPify has a command. That's the whole transaction. Running the swagger command converts your OpenAPI or Swagger spec directly into MCP tools:

npx mcpify-cli swagger ./tests/fixtures/swagger/petstore.yaml

Instead of hand-mapping each endpoint to a tool definition, you get a complete MCP surface with typed inputs, descriptions, and metadata — ready to register with Claude Code, Claude Desktop, Codex, or VS Code via the --clients flag.

2. Config-driven and framework-aware

MCPify doesn't just read a spec; it reads your whole stack. The default analyze command runs backend analysis plus optional OpenAPI, Prisma, Drizzle, and Mongoose analysis in one pass. For an ecommerce stack with Prisma and a Swagger spec:

npx mcpify-cli analyze ./examples/ecommerce-saas \
  --output ./examples/ecommerce-saas/.mcpify \
  --prisma ./examples/ecommerce-saas/prisma/schema.prisma \
  --swagger ./examples/ecommerce-saas/openapi.json

Frontend got a React or Vue UI? The frontend analyzer maps UI actions to agent-controllable operations too. Workflows like checkout get exposed as atomic, composable steps rather than a pile of raw endpoints.

3. Built for the way agents actually work

Every generated tool passes through a permission layer (scopes, roles, audit trails) before it touches your system, and with --ai-enhance MCPify uses an LLM to improve tool descriptions so agents stop guessing. There's even an audit command for a static safety review and a simulate command to run AI simulations against your compiled tool surface before you ship it.

How MCPify compares to Inngest, Temporal, and hand-rolled MCP servers

I get asked this a lot, so let's be direct about it.

MCPifyHand-rolled MCPInngest / Temporal
Generates an MCP server from your APIYes, automaticallyYou write every toolNot their focus
OpenAPI / Prisma input supportBuilt inManual
Keeps tools in sync with codeRegenerates on commitManual updates
Core jobExpose your app to agentsAgent toolingWorkflow orchestration & durability

To be fair to Inngest and Temporal: they're genuinely great at what they do — durable workflows, retries, and orchestration at scale. But they're not MCP server generators. They don't look at your OpenAPI spec and emit an MCP server, and they don't solve the tool-drift problem. If you're building agent workflows, you might well pair one of them with MCPify rather than pick between them. And compared to hand-rolling MCP servers? There's no comparison. Hand-rolling means you own every schema, every description, every sync problem forever. MCPify means you own one command. I know which one I'd rather maintain.

Quick start: your first generated MCP server

You don't need to install anything. From the root of your app:

npx mcpify-cli analyze ./my-app

That's it. The pipeline runs backend analysis, optional schema and spec analysis, event discovery, workflow detection, permission classification, and MCP server generation. The generated AGENTS.md explains exactly how to connect the compiled server to your MCP client. Want to start from an OpenAPI spec alone?

npx mcpify-cli swagger ./openapi.json

Two commands, and your API speaks MCP. That's the whole pitch.

Try the MCPify MCP server generator now

Who is MCPify for?

Backend engineers who'd rather ship features than MCP boilerplate. Platform teams that need to expose internal APIs to AI agents without a bespoke integration per service. Founders and indie hackers who want their product to be "AI-ready" without rewriting it. And honestly, anyone who's ever stared at an OpenAPI spec and dreaded writing the 40th tool definition. If you build APIs and want agents to use them, MCPify is the MCP server generator that meets you where you are.

Frequently asked questions

How long does it take to generate an MCP server from an OpenAPI spec?

Usually seconds. MCPify's swagger command reads your spec and emits a typed MCP server immediately — no hand-mapping, no JSON-schema archaeology. For a full codebase analysis with schema and workflow detection, expect a couple of minutes on a typical app.

Does MCPify work with TypeScript, Express, and Next.js?

Yes. The backend analyzer is framework-aware for Express, Fastify, NestJS, and Next.js, and it handles both JavaScript and TypeScript codebases — including inline, non-exported handlers that naive scanners miss.

Can MCPify generate MCP servers without an OpenAPI spec?

Absolutely. That's the point. If you don't have a spec, MCPify analyzes your actual code — routes, controllers, services, Prisma/Drizzle/Mongoose schemas, even frontend actions — and generates the MCP server from what it finds.

Is MCPify free to use?

Yes, it's open source and free. The CLI runs locally via npx, and the code lives on GitHub. The only optional paid piece is the AI enhancement flag, which uses your own ANTHROPIC_API_KEY when you pass --ai-enhance.

Which AI clients can use a generated MCP server?

Any MCP-compatible client. MCPify can auto-register into Codex, Claude Code, Claude Desktop, and VS Code with the --clients flag, or you can connect the server to anything else that speaks MCP.

Your API already describes itself. Let it speak MCP.

Hand-writing MCP servers is a solved problem with a better answer. MCPify reads what you already have — your OpenAPI spec, your schemas, your code — and compiles it into an MCP server your agents can actually use, safely and without drift. No boilerplate, no rewrites, no endless maintenance.

Generate your MCP server with MCPify

Star MCPify on GitHub

Read: Stop hand-writing MCP servers Read: MCPify vs Inngest vs Temporal Read: MCPify quick reference See: MCPify live demo