api-gateway-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@api-gateway-mcplist my registered credentials for the board service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
api-gateway-mcp
Claude Cowork や ChatGPT から、既存のコネクタではできない API 呼び出しを行うための、汎用 API ゲートウェイです。Cloudflare Workers で動くリモート MCP サーバーとして、顧客ごとにデプロイします。
MCP: OAuth でログインしたユーザーに、寿命の短いゲートウェイトークンを発行します。
REST:
/api/<service>/<path>をトークンで受け付け、上流のサービスに認証情報を注入して中継します。ボディは素通しです。Web 画面: ユーザーが連携先の認証情報を登録します。
設計は docs/concept.md と docs/auth-design.md を参照してください。
使い方(クライアント側)
コネクタを追加します。ゲートウェイの Web 画面(
https://<ゲートウェイ>/)に、追加用のリンクがあります。Pro / Max: 個人の設定でカスタムコネクタとして
https://<ゲートウェイ>/mcpを追加します。Team / Enterprise: Owner が組織の設定で同じ URL を追加し、各メンバーが接続します。
各ユーザーは
https://<ゲートウェイ>/にサインインし、連携先の認証情報を登録します。Claude は
list_credentialsで認証情報を確かめ、issue_tokenでトークンを受け取ります。サンドボックス内のスクリプトは、そのトークンで REST を呼びます。
curl -H "Authorization: Bearer $TOKEN" "https://<ゲートウェイ>/api/board/v1/clients"Related MCP server: Cloudflare Remote MCP Server
スキル(プラグイン)
このリポジトリは Claude のプラグインのマーケットプレイスを兼ねています。plugins/api-gateway に、ゲートウェイの共通手順(api-gateway)とサービス別のスキル(board など)が入っています。プラグインにはコネクタの URL を含めていないので、どのデプロイでも同じものを使えます。
Pro / Max: Customize > Plugins > Add marketplace で
novshi-tech/api-gateway-mcpを追加し、api-gatewayをインストールします。Team / Enterprise: Owner が Organization settings > Plugins & skills で、このリポジトリ(または、これを参照する社内のマーケットプレイス用リポジトリ)を同期し、配布方法を選びます。
zip でアップロードする場合:
npm run plugin:zipでdist/api-gateway-<version>.zipを作り、Plugins の Upload plugin で追加します。更新するときはplugin.jsonのversionを上げて作り直し、同じ名前でアップロードし直します。
2026-09 時点では、個人の Cowork で GitHub のマーケットプレイスからのインストールが同期に失敗しました(Claude Code では同じマーケットプレイスからインストールできます)。その場合は zip を使ってください。
board のエンドポイント一覧は tools/gen-board-reference.py で board の OpenAPI から生成しています。
スクリプトでは User-Agent を明示してください。Python の urllib の既定値などは、Cloudflare に Error 1010 で拒否されることがあります。
Team / Enterprise では、組織の管理者がコード実行のネットワーク設定で、ゲートウェイのドメインを許可する必要があります。
デプロイ
1. IdP にアプリを登録する
リダイレクト URI を 2 つ登録します。
https://<ゲートウェイ>/oauth/callback(MCP クライアントの接続)https://<ゲートウェイ>/login/callback(Web 画面のサインイン)
Entra ID はシングルテナントのアプリとして登録し、OIDC_ISSUER を https://login.microsoftonline.com/<tenant-id>/v2.0 にします。Google は Workspace のドメインを ALLOWED_DOMAINS に必ず指定します。
2. 設定する
wrangler.example.jsonc を wrangler.jsonc にコピーし(wrangler.jsonc は git の管理外です)、vars に PUBLIC_URL、IdP の設定、SERVICES(連携先)を書きます。KV ネームスペースを作って ID を設定します。
cp wrangler.example.jsonc wrangler.jsonc
npx wrangler kv namespace create OAUTH_KV
npx wrangler secret put OIDC_CLIENT_SECRET
openssl rand -base64 32 | npx wrangler secret put SIGNING_KEY
openssl rand -base64 32 | npx wrangler secret put ENCRYPTION_KEY
npx wrangler deployENCRYPTION_KEY を変えると、登録済みの認証情報は復号できなくなります。
3. OAuth の連携先(freee など)
SERVICES で auth.type を oauth2 にした連携先は、Web 画面から OAuth(認可コード + PKCE)で接続します。連携先にアプリを登録し、コールバック URL に https://<ゲートウェイ>/connect/callback を指定します。クライアント ID とシークレットは、サービス名を大文字にした名前で登録します。
npx wrangler secret put OAUTH_FREEE_CLIENT_ID
npx wrangler secret put OAUTH_FREEE_CLIENT_SECRETMicrosoft Graph は、サインイン用とは別の Entra アプリを登録します。プラットフォームは「Web」で、wrangler.example.jsonc の scope にある委任のアクセス許可を付けて、管理者の同意を与えます。
アクセストークンは期限の 1 分前からゲートウェイがリフレッシュします。リフレッシュトークンが失効したら、画面に「再接続」が出ます。
GitHub Actions でデプロイする
.github/workflows/ci.yml は、main に push するとテストのあとにデプロイします。リポジトリの Environment production に、次のシークレットを登録します。
CLOUDFLARE_API_TOKEN: 「Edit Cloudflare Workers」テンプレートで作った API トークンCLOUDFLARE_ACCOUNT_ID: Cloudflare のアカウント IDWRANGLER_CONFIG:wrangler.jsoncの中身まるごと
Worker のシークレット(SIGNING_KEY など)は Cloudflare 側にあるので、ここには要りません。
開発
npm install
cp wrangler.example.jsonc wrangler.jsonc
cp .dev.vars.example .dev.vars # 値を埋める
npm run dev
npm run typecheck
npm test # Worker のテストと、スキルのスクリプトのテストLicense
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
15Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Cloudflare Workers-based implementation of Model Context Protocol (MCP) server with OAuth login that allows tools like Claude to access external capabilities.-
- FlicenseNot gradedqualityDmaintenanceEnables deployment of remote MCP servers on Cloudflare Workers without authentication requirements. Allows custom tool integration and connection from both Cloudflare AI Playground and Claude Desktop through remote proxy.1-
- FlicenseNot gradedqualityCmaintenanceEnables deploying a remote MCP server on Cloudflare Workers with OAuth, allowing MCP clients like Claude Desktop to call tools over the internet.-
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication. Enables connecting MCP tools from AI Playground or Claude Desktop.-