GM

g12789/mcp-quickstart

API development

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

80 stars 1 forks 品質 67 トレンド 4MIT

g12789/mcp-quickstart は [https://github.com/g12789/mcp-quickstart. からインポートされた MCP サーバーの候補です

概要

g12789/mcp-quickstart は [https://github.com/g12789/mcp-quickstart. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)


30秒で動作、テスト可能、公開可能なMCPサーバーを強制します。 1つのコマンド。 TypeScript or Python です。 ツール、インスペクター、テストなど、すべての配線。 または、OpenAPI 仕様でそれを指し、API エンドポイントごとに 1 つの MCP ツールを自動的に取得します。**

ほとんどの「MCPサーバーを作成する」ガイドは空のスケルトンと20ステップのセットアップであなたを残します。 [[mcp-quickstart]]は、runs、tests、およびClaude / Cursorに最初の試みで接続するサーバーを手にします - その後、あなたの方法から抜け出します。

お問い合わせ

REST API を MCP サーバーに変える

ほとんどのスキャフォールダーは、empty テンプレートを手渡しし、“now go write your tools.” [mcp-quickstart]] は、既存の API を読み込み、** 用のツールを書くことができます。

OpenAPI 3.x ドキュメント (URL またはローカル [.json]]) / [[[.yaml]) のいずれかで、実際の MCP サーバーを生成します。** は、パス/クエリ パラメータとリクエスト ボディが小さな HTTP クライアントに配線されます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-quickstart

⭐ 推荐: npx ship-skills init(已登录 gh 会自动支持作者)

Forge a working, testable, publishable MCP server in 30 seconds. One command. TypeScript or Python. Example tools, the Inspector, and tests — all wired up. Or point it at an OpenAPI spec and get one MCP tool per API endpoint, automatically.

npm create mcp-quickstart@latest my-server

Most “create an MCP server” guides leave you with an empty skeleton and a 20-step setup. mcp-quickstart hands you a server that runs, tests, and connects to Claude / Cursor on the first try — then gets out of your way.


Turn any REST API into an MCP server

Most scaffolders hand you an empty template and say “now go write your tools.” mcp-quickstart can instead read an existing API and write the tools for you — from an OpenAPI spec or a single curl command:

# whole API, from an OpenAPI spec:
npx mcp-quickstart petstore-mcp --from-openapi https://petstore3.swagger.io/api/v3/openapi.json

# one endpoint, straight from a curl you already have:
npx mcp-quickstart my-tool --from-curl "curl https://api.example.com/v1/search?q=hi -H 'Authorization: Bearer X'"

Point it at any OpenAPI 3.x document (a URL or a local .json / .yaml) and it generates a real, typed MCP server — one tool per operation, with path/query params and request bodies wired up to a small HTTP client. Request bodies are expanded into per-field zod types ($ref, nested objects, arrays and enums resolved), not an opaque blob — so the AI gets a real schema for each tool. Set API_BASE_URL (and an optional auth header) in .env, run npm run dev, and your AI agent can call the API immediately.

--from-curl does the same for a single request: paste a curl command (or a file with one) and get one MCP tool. Query params and the JSON body become overridable tool inputs, and auth headers are moved to .env instead of being hard-coded into the generated source.

my-api-mcp/
├── src/
│   ├── index.ts   # one registerTool(...) per API operation — plain, editable TS
│   └── http.ts    # generic caller: URL building, auth header, body
└── .env.example   # API_BASE_URL, API_AUTH_HEADER, API_AUTH_VALUE

No magic, no runtime spec parsing — just generated TypeScript you own and can edit.


GitHub で README 全文を見る

インストール

npx mcp-quickstart petstore-mcp --from-openapi https://petstore3.swagger.io/api/v3/openapi.json
MCP 初心者?mcpskill.org のガイドから始めましょう →