Skip to main content
Glama
sawroop1242

OpenRouter Reasoning MCP

by sawroop1242

OpenRouter Reasoning MCP

一个运行在 Cloudflare Workers 上的无状态远程 Model Context Protocol (MCP) 服务器。

它公开了一个工具 multi_step_reasoning,该工具会向 OpenRouter 发送提示词,执行第二次验证,然后返回两个响应,并在可用时返回提供商的推理字段。

架构

MCP client
   │
   │ Streamable HTTP
   ▼
Cloudflare Worker /mcp
   │
   ├── OpenRouter request #1
   │
   └── OpenRouter request #2 (verification)
             │
             ▼
      OpenRouter model
      stealth/ox-alpha

Related 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 dev

MCP 端点是 /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/mcp

MCP 客户端配置

将已部署的 /mcp URL 用作远程 MCP 服务器,并使用 Streamable HTTP。不要将该端点配置为已弃用的 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 secret 的形式存储,绝不会被提交到 Git。当前服务器有意不启用身份验证,这意味着任何能够访问 /mcp 端点的人都可以调用该工具,并消耗所配置的 OpenRouter 账户。请勿将此服务与付费的 OpenRouter 密钥公开使用,否则请先添加 MCP 身份验证/授权。

许可证

MIT

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Facilitates 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.
    2
    115
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides 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.
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sawroop1242/openrouter-reasoning-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server