MCP Server Generator
Tutorial · No OpenAPI

How to Create an MCP Server Without OpenAPI

不用 OpenAPI,如何创建 MCP Server

You do not need an OpenAPI spec to create an MCP server for Cursor or Claude Desktop. Describe each tool and its typed parameters in a form, choose TypeScript or Python, then download a ZIP with a stdio server, install steps, and host config. Handlers start as stubs—replace the TODOs with your real logic.

创建给 Cursor 或 Claude Desktop 用的 MCP server,并不一定要先有 OpenAPI。在表单里写下每个工具和参数类型,选择 TypeScript 或 Python,即可下载包含 stdio 服务端、安装步骤和主机配置片段的 ZIP。生成代码里的 handler 先是占位实现——把 TODO 换成你的真实逻辑即可。

English first, then 中文 in each section. Primary CTA: homepage generator form.

What “without OpenAPI” means

什么叫「不用 OpenAPI」

MCP tools are a name + description + typed parameters (string, number, boolean)—not REST paths or HTTP methods. OpenAPI shines for large HTTP APIs; many first MCP servers are task tools, not a 1:1 map of every endpoint.

工具是「任务描述」,不是「每个 HTTP 端点自动变工具」。没有 OpenAPI 也能先把 Cursor / Claude Desktop 连上并跑通。

Prerequisites

前置条件

  • Runtime: Node.js 18+ for TypeScript, or Python 3.10+ for Python (the Python output needs mcp 2.x)
  • Host: Cursor or Claude Desktop
  • Generator: No account, no paid API key required to scaffold

本机需要运行时依赖;生成器本身免登录、免付费。

Step-by-step

分步操作

  1. Open the generator

    Go to the free MCP Server Generator and scroll to the form.

  2. Name the server

    Set a server name and one-line description for package metadata and host config.

  3. Add tools

    Define tools and parameters in the form—no YAML/JSON OpenAPI file.

  4. Choose language

    TypeScript (@modelcontextprotocol/sdk + Zod) or Python (mcp).

  5. Preview & download

    Generate to preview source, then download the ZIP.

  6. Install dependencies

    npm install or pip install -r requirements.txt.

  7. Paste host config

    Copy the README JSON into Cursor’s mcp.json or claude_desktop_config.json. Details and absolute-path variants: connect an MCP server to Claude Desktop and Cursor.

  8. Restart & implement

    Restart the host, call a tool, then replace TODO handlers with real logic.

打开表单 → 命名 → 加工具与参数 → 选 TS/Python → 预览下载 → 安装依赖 → 粘贴配置 → 重启主机 → 替换 TODO。

What the ZIP contains

ZIP 里有什么

  • TypeScript: package.json, tsconfig.json, src/index.ts, README.md
  • Python: server.py, requirements.txt, pyproject.toml, README.md
  • Each tool registered with typed parameters (Zod schema or Python type hints) and a placeholder handler that echoes its arguments
  • README with run commands and an mcpServers snippet for Cursor / Claude Desktop

Every file, line by line: MCP server template for TypeScript and Python.

脚手架 + 配置说明,不是托管云服务。你在本机用 stdio 跑起来。

When to skip OpenAPI (and when not)

什么时候可以跳过 OpenAPI

  • Skip: prototypes, personal tools, small curated tool sets, no public HTTP API yet
  • Don’t skip: large existing REST APIs with a good OpenAPI you want to sync—prefer OpenAPI→MCP generators instead

See also: MCP Server Generator vs OpenAPI generators.

原型 / 少量精选工具 → 表单;大型 REST + 已有 OpenAPI → 见对比页。

Honest limitations

诚实局限

Limitations

This generator creates a local stdio MCP scaffold. Tools are registered with typed parameters, but handlers are placeholders. It does not invent an OpenAPI file, host a remote server, or replace careful tool design for large APIs.

本工具生成的是本地 stdio MCP 脚手架。工具与参数类型会注册好,但 handler 是占位。它不会替你「造一份 OpenAPI」、也不会托管远程服务,更不能替代大型 API 的工具设计。能「跑通主机连接」≠「生产级业务逻辑」。

  • Parameter types today: string, number, boolean (not full OpenAPI schemas)
  • No auth, remote transport, or multi-user deployment baked in
  • You run the server locally over stdio

Try the free form

免费试用表单生成器

Describe tools → download TypeScript or Python → connect Cursor or Claude Desktop.

FAQ

常见问题

Do I need OpenAPI to create an MCP server?

No. You can define tools and parameters in a form and generate TypeScript or Python source.

中文: 做 MCP server 一定要 OpenAPI 吗?不必。可用表单定义工具与参数,直接生成 TS / Python 工程。

Will the generated server call my real API?

Not until you replace the TODO handlers. The ZIP scaffolds tools and types; business logic is yours.

中文: 默认不会替你调真实 API;需要你自己实现 handler。

Are Cursor and Claude Desktop both supported?

Yes—README includes JSON snippets for both (stdio).

中文: 支持;按 README 粘贴配置并重启主机。

TypeScript or Python?

Both; pick before generate.

中文: 两种都支持,生成前选择。

Is it free?

Yes—no account, no checkout; you download and run locally.

中文: 免费、免账号;下载源码本地运行。

When should I use an OpenAPI-based generator instead?

When you already maintain a solid OpenAPI for a large HTTP API and want bulk tool generation—see the comparison page.

中文: 已有高质量 OpenAPI、需要批量映射时,更适合 OpenAPI 系生成器;见对比页。