Skip to main content
Glama
sawroop1242

OpenRouter Reasoning MCP

by sawroop1242

OpenRouter Reasoning MCP

A stateless remote Model Context Protocol (MCP) server running on Cloudflare Workers.

It exposes one tool, multi_step_reasoning, which sends a prompt to OpenRouter, performs a second verification pass, and returns both responses plus provider reasoning fields when available.

Architecture

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

Requirements

  • Node.js

  • A Cloudflare account

  • An OpenRouter API key

  • Wrangler authentication

Local development

npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run dev

The MCP endpoint is /mcp.

Deploy

npm install
npx wrangler login
npx wrangler secret put OPENROUTER_API_KEY
npm run typecheck
npm run deploy

After deployment, the endpoint will be:

https://openrouter-reasoning-mcp.<your-subdomain>.workers.dev/mcp

MCP client configuration

Use the deployed /mcp URL as a remote MCP server using Streamable HTTP. Do not configure the endpoint as the deprecated HTTP+SSE transport.

Tool

multi_step_reasoning

Input:

{
  "prompt": "Explain why a binary search is O(log n).",
  "follow_up": "Verify the explanation and correct any mistakes."
}

follow_up is optional. The default is:

Are you sure? Think carefully and verify your answer.

Security

The OpenRouter key is stored as a Cloudflare Worker secret and is never committed to Git. The current server is intentionally unauthenticated, meaning anyone who can reach the /mcp endpoint can invoke the tool and consume the configured OpenRouter account. Add MCP authentication/authorization before using this publicly with a paid OpenRouter key.

License

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