Skip to main content
Glama

athena-mcp

When Hermes is stuck, it asks Athena.

An MCP server that gives your tool-using agent a reasoning sidekick. One tool: think. No side effects — Athena has no tools of her own. She just reasons.

When your main agent (Hermes, Claude Code, Cursor, any MCP-speaking client) hits a hard problem — a subtle bug, an architecture call, a plan that needs critique — it calls think and gets back a concise, well-reasoned response. Your agent stays in the driver's seat; Athena is the quiet consultant it turns to when the problem is thornier than its default model handles well.

Inspired by Codebuff's thinker agent, which does exactly this internally: Codebuff's orchestrator spawns thinker-gpt with no tools after gathering context, and the thinker's sole job is to think hard and return a brief answer.

Why the separation?

Most agents run on one model for everything. That model is a compromise: fast and cheap enough for hundreds of tool calls, smart enough for most of them. But when it's genuinely stuck, you want a different model — a reasoning-heavy one (Claude Opus, GPT-5, Gemini Pro, DeepSeek R1) — without ceding control of the rest of the task. That's what Athena is for.

  • Cost — reasoning models are expensive to run on every turn. Call them only when needed.

  • Latency — reasoning models think slowly. Save them for hard problems.

  • Tool orthogonality — Athena has no tools on purpose. The caller stays in control of side effects.

  • Model portability — swap reasoning models per call without reconfiguring your whole agent.

Related MCP server: think-mcp-server

Two backends

claude-code (default when the claude CLI is on PATH) — spawns claude -p for each call and uses your Anthropic Pro/Max subscription OAuth. No API key, no per-token billing. Just counts against your subscription quota. Supports opus, sonnet, haiku, or full Claude model names.

openrouter — HTTPS call to OpenRouter. Any model (Claude, GPT, Gemini, DeepSeek, Qwen, whatever) via per-token billing. Requires OPENROUTER_API_KEY.

Pick explicitly with ATHENA_BACKEND=claude-code or ATHENA_BACKEND=openrouter.

Install

git clone https://github.com/DevvGwardo/athena-mcp.git ~/projects/athena-mcp
cd ~/projects/athena-mcp
npm install
npm run build

Environment

Var

Backend

Default

Notes

ATHENA_BACKEND

both

auto

claude-code if claude CLI found, else openrouter

ATHENA_MODEL

both

opus / anthropic/claude-opus-4.6

Model to use

ATHENA_EFFORT

both

high

low / medium / high

ATHENA_CLAUDE_CLI

claude-code

auto (PATH lookup)

Absolute path to claude binary

ATHENA_TIMEOUT_MS

claude-code

180000

Subprocess timeout

OPENROUTER_API_KEY

openrouter

—

Required

ATHENA_APP_NAME / ATHENA_APP_URL

openrouter

—

OpenRouter analytics headers

Wire into Hermes

Hermes speaks MCP over stdio natively (Nous Research Hermes Agent).

With a Claude subscription (recommended):

hermes mcp add athena \
  --command /path/to/node \
  --args /path/to/athena-mcp/dist/index.js \
  --env ATHENA_CLAUDE_CLI=/opt/homebrew/bin/claude

With OpenRouter:

hermes mcp add athena \
  --command /path/to/node \
  --args /path/to/athena-mcp/dist/index.js \
  --env ATHENA_BACKEND=openrouter OPENROUTER_API_KEY=sk-or-v1-... ATHENA_MODEL=anthropic/claude-opus-4.6

Verify:

hermes mcp list          # should show `athena`
hermes mcp test athena   # should report "Connected" and 1 tool

Start a new Hermes session and the agent will see a think tool.

Wire into Claude Code

claude mcp add athena --command node --args /path/to/athena-mcp/dist/index.js

Wire into any other MCP client

It's a standard stdio MCP server. Point your client at node /path/to/athena-mcp/dist/index.js.

The think tool

Field

Type

Required

Description

prompt

string

yes

The problem to reason about. Can be brief.

context

string

no

Code, conversation excerpt, error messages — anything Athena needs to see. She can't read files.

effort

low|medium|high

no

Reasoning effort. Defaults to ATHENA_EFFORT.

model

string

no

Model override for this call. Format depends on backend.

Example call (JSON-RPC):

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "think",
    "arguments": {
      "prompt": "Is there a race condition in the claim() function? If so, minimal fix?",
      "context": "def claim(self, rid):\n    if self.claims.get(rid):\n        return False\n    self.claims[rid] = self.agent_id\n    return True",
      "effort": "high"
    }
  }
}

Response comes back as text with a footer line: backend: ... · model: ... · effort: ... · duration · tokens.

Design notes

  • Stateless. Each call is independent. For conversation continuity, pass the relevant history via context.

  • <think>...</think> blocks in Athena's response are stripped before returning — she can use them as scratch space without polluting the output. Matches Codebuff's convention.

  • Neutral cwd. The claude-code backend spawns from os.tmpdir() so project CLAUDE.md files don't leak into Athena's context.

  • --tools "" + --disable-slash-commands + --no-session-persistence on every claude-code call keep her truly tool-free and stateless.

  • No retry logic. If the backend errors, the error surfaces cleanly so the caller decides whether to retry.

Development

npm run dev     # tsc --watch
npm run build
npm start       # runs dist/index.js (needs an MCP stdio peer)

Smoke test without touching any API:

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
  | node dist/index.js

License

MIT

Credits

Pattern borrowed — with appreciation — from Codebuff by the CodebuffAI team. Their thinker agent is the canonical reference for this design.

Available Tools

1 tool
thinkA

Ask Athena to think. Delegates deep reasoning to a stronger model when you hit a hard problem — architecture decisions, subtle bugs, plan critique, tricky logic. Athena has NO tools; she only reasons and returns a concise response. You must gather relevant context yourself and pass it in via the context arg. Does not modify files, run commands, or access the network beyond the reasoning call.

Inputs: prompt (required), context, effort, model.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'think' has a clearly defined and distinct purpose focused solely on deep reasoning without any competing alternatives.

    Naming Consistency5/5

    A single tool inherently exhibits perfect naming consistency, as there are no other tools to compare against. The tool name 'think' is straightforward and follows a simple verb pattern without any conflicting conventions.

    Tool Count2/5

    A single tool is generally too few for most server purposes, as it severely limits functionality and scope. While the tool is well-defined for reasoning tasks, the server lacks breadth, making it feel thin and potentially incomplete for broader applications.

    Completeness2/5

    The server is severely incomplete for any domain beyond basic reasoning, as it only offers a single tool for deep thinking without supporting actions like file modification, command execution, or network access. This creates significant gaps that will likely cause agent failures in practical workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that implements the 'think' tool, providing Claude with a dedicated space for structured thinking during complex problem-solving tasks to improve reasoning capabilities.
      130
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A minimal MCP Server that provides Claude AI models with the 'think' tool capability, enabling better performance on complex reasoning tasks by allowing the model to pause during response generation for additional thinking steps.
      1
      38 npm
      25
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server implementation of Anthropic's Think Tool prompt engineering technique that enables Claude to break down complex problems and enhance its reasoning capabilities by providing a simple tool that echoes back thoughts.
      1
      2
      ISC
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides a "think" tool enabling structured reasoning for AI agents, allowing them to pause and record explicit thoughts during complex tasks or multi-step tool use.
      1
      107
      MIT