OpenRouter Reasoning MCP
OpenRouter Reasoning MCP
Cloudflare Workers 上で動作する、ステートレスなリモート Model Context Protocol (MCP) サーバーです。
公開しているツールは multi_step_reasoning の 1 つです。このツールはプロンプトを OpenRouter に送信し、2 回目の検証パスを実行して、両方のレスポンスと、利用可能な場合にはプロバイダーの推論フィールドを返します。
アーキテクチャ
MCP client
│
│ Streamable HTTP
▼
Cloudflare Worker /mcp
│
├── OpenRouter request #1
│
└── OpenRouter request #2 (verification)
│
▼
OpenRouter model
stealth/ox-alphaRelated MCP server: CRASH - Cascaded Reasoning with Adaptive Step Handling
前提条件
Node.js
Cloudflare アカウント
OpenRouter API キー
Wrangler の認証
ローカル開発
npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run devMCP エンドポイントは /mcp です。
デプロイ
npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run typecheck
npm run deployデプロイ後、エンドポイントは次のとおりです:
https://openrouter-reasoning-mcp.<your-subdomain>.workers.dev/mcpMCP クライアント設定
デプロイされた /mcp URL を、Streamable HTTP を使用したリモート MCP サーバーとして設定してください。エンドポイントを非推奨の HTTP+SSE トランスポートとして設定しないでください。
ツール
multi_step_reasoning
入力:
{
"prompt": "Explain why a binary search is O(log n).",
"follow_up": "Verify the explanation and correct any mistakes."
}follow_up はオプションです。デフォルトは次のとおりです:
Are you sure? Think carefully and verify your answer.セキュリティ
OpenRouter キーは、Cloudflare Worker のシークレットとして保存され、Git にコミットされることはありません。現在のサーバーは意図的に認証なしです。つまり、/ mcp エンドポイントに接続できる、はな誰でもツールを呼び出して、設定済みの OpenRouter アカウントを消費できます。有料の OpenRouter キーを使用して公開運用する前に、MCP の認証/認可を追加してください。
ライセンス
MIT
Wait, I have a stray "、" in "本意図的に認証なしです。" Actually I wrote "現在のサーバーは意図的に認証なしです。" then "本意図的"... hmm "本" is a typo. I need to fix: "現在のサーバーは意図的に認証なしです。" And "接続できる" - typo - should be "到達できる" or "届く". Let me rewrite the security section cleanly:
"OpenRouter キーは Cloudflare Worker のシークレットとして保存され、Git にコミットされることはありません。現在のサーバーは意図的に認証なしです。つまり、/ mcp エンドポイントに到達できる者誰でもツールを呼び出し、設定済みの OpenRouter アカウントを消費できます。有料の OpenRouter キーを使用して公開運用する前に、MCP の認証・認可を追加してください。"
"Hmm "到達できる誰でも" grammatically: "到達できる人なら誰でも". Let me use "到達できる人な誰でも" or "到達できる人なら誰でも". Use full: "Who sees者" → "到達できる人なら誰でも". Good.
Also "設定した OpenRouter アカウントを消費으로使用" - "設定した" (configured) → "設定された" better.
Let me also double-check "本語意図" no.
Now write final answer carefully, no typos.
Also note: There's an issue in my draft: "デプロイ後" is "deployment". "It creates" - OK.
One more think: "Input:" - do I want halfwidth colon "Input:" in Japanese; hmm "入力:". I'll use "入力:" with full-width. Similarly "デフォルトは次のとおり:" Good.
Also, in the Security section: "MCP の認証/認可を追加してください。" - I used "/" full-width slash - good, or "/"ASCII. Original has "/" ASCII. Hmm, use "/" half-width to mirror exactly. Use "認証/認可". Ok.
Also I should be consistent with "MCP" spacing. In original: "MCP client" → "MCP クライアント".
Final output now.# OpenRouter Reasoning MCP
Cloudflare Workers 上で動作する、ステートレスなリモート Model Context Protocol (MCP) サーバーです。
公開されているツールは multi_step_reasoning の 1 つです。このツールはプロンプトを OpenRouter に送信し、2 回目の検証パスを実行し、両方のレスポンスと、利用可能な場合にはプロバイダーの推論フィールドを返します。
アーキテクチャ
MCP client
│
│ Streamable HTTP
▼
Cloudflare Worker /mcp
│
├── OpenRouter request #1
│
└── OpenRouter request #2 (verification)
│
▼
OpenRouter model
stealth/ox-alpha前提条件
M Node.js Cloudflare アカウント OpenRouter API キー Wrangler の認証
ローカル開発
npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run devMCP エンドポイントは / mcp です。
デプロイ
npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run typecheck
npm run deployデプロイ後、エンドポイントは次のとおりです:
https://openrouter-reasoning-mcp.<your-subdomain>.workers.dev/mcpMCP クライアント設定
デプロイされた / mcp URL を、Streamable HTTP を使用したリモート MCP サーバーとして設定してください。このエンドポイントを非推奨の HTTP+SSE トランスポートとして設定しないでください。
ツール
multi_step_reasoning
入力:
{
"prompt": "Explain why a binary search is O(log n).",
"follow_up": "Verify the explanation and correct any mistakes."
}follow_up はオプションです。デフォルトは次のとおりです:
Are you sure? Think carefully and verify your answer.セキュリティ
OpenRouter キーは Cloudflare Worker のシークレットとして保存され、Git にコミットされることはありません。現在のサーバーは意図的に認証なしです。つまり、/ mcp エンドポイントに到達できる人な誰でもツールを呼び出し、設定の OpenRouter アカウントを消費できます。有料の OpenRouter キーを使用して公開運用する前に、MCP の認証/認可を追加してください。
ライセンス
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Answers cheaply first, then escalates to a premium model only when a checker fails.
Multi-model AI fact-checker (Community Notes for AI) and second opinion across LLM families.
11Multi-model AI fact-checker (Community Notes for AI) and second opinion across LLM families.
11Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.
Related MCP Servers
- AlicenseBqualityDmaintenanceFacilitates two-stage reasoning processes using DeepSeek for detailed analysis and supports multiple response models such as Claude 3.5 Sonnet and OpenRouter, maintaining conversation context and enhancing AI-driven interactions.2115MIT
- AlicenseAqualityDmaintenanceEnables structured, iterative reasoning for complex problem-solving with features like confidence tracking, revision mechanisms, and branching support. Provides flexible validation and multiple output formats for systematic analysis and decision-making tasks.1184 npm72MIT
- AlicenseAqualityCmaintenanceProvides advanced AI reasoning capabilities through step-by-step thinking framework, enabling complex problem-solving with dynamic thought revision, multi-path reasoning, and adaptive planning for sophisticated analysis tasks.1MIT
- AlicenseAqualityDmaintenanceImplements Chain of Thought methodology for extended sequential thinking on complex reasoning tasks. Enables AI clients to break down and solve problems that require deep, step-by-step logical analysis.18 npm1MIT