three.ws Brain
io.github.nirholasPublished by GitHub account nirholasv0.1.4Updated Oct 24, 2026
List LLM providers and run chat completions through the three.ws multi-provider router.
The publisher's own server: BrainDog
Overview
Local stdio MCP server that lets an assistant list LLM providers and run chat completions through the three.ws multi-provider router.
- What you can do
- List available LLM providers with key, network, tier, max output, live availability and whether a key is required
- Run a chat completion through a chosen provider, returning the reply, the route taken, token usage and timing
- Use free open-weight tiers without a key, or paid first-party flagships with a three.ws API key
- Rely on automatic fallback across mirrors and free tiers when the requested model is briefly down
- When to use it
- Useful when you want an assistant to query several model vendors through one endpoint instead of wiring each vendor SDK, or to compare or route requests across Claude, GPT, o3, Grok, Qwen, DeepSeek and open-weight models.
- Requirements
- Runs locally via npx with Node.js 20 or newer. Network access to three.ws, or a custom base URL set with THREE_WS_BASE. Optional THREE_WS_API_KEY (Bearer token) unlocks paid flagships; optional THREE_WS_TIMEOUT_MS sets the per-request timeout, default 120000 ms.
Installation
In SourceWeft
- Open three.ws Brain in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@three-ws/brain-mcp
Any model, one interface — discover LLM providers and run chat completions through the three.ws multi-provider router, from any AI agent.
[npm] [license] [node] [MCP Registry] [three.ws]
A Model Context Protocol server that gives any AI assistant the three.ws multi-provider LLM router over stdio. Discover which models are available — Claude, the GPT-5.6 family, o3, Grok, Qwen, DeepSeek, NVIDIA Nemotron, IBM Granite, and more — and run a chat completion through whichever one fits, without wiring each vendor SDK yourself.
The router fronts every provider behind one endpoint and transparently falls back across mirrors and free tiers if the chosen model is briefly down. The free open-weight tiers (GPT-OSS 120B, NVIDIA NIM models) work with no key; the paid first-party flagships unlock with a three.ws API key.
Install
Or run with npx (no install):
Quick start
Claude Code, one line:
To unlock the paid flagships, pass your three.ws API key:
Claude Desktop / Cursor (claude_desktop_config.json or mcp.json):
Inspect the surface with the MCP Inspector:
Tools
Both tools read live data — the provider set and completions vary between calls, so neither is idempotent. chat does not mutate any platform state, so it is annotated read-only.
Input parameters
list_providers — no parameters.
chat — messages (required: 1–100 turns of { role: "user" | "assistant", content }, content ≤ 16,000 chars), provider (provider key from list_providers, default gpt-oss-120b), system (optional system prompt, ≤ 8,000 chars), maxTokens (optional, 64–16384, default 4096, clamped to the model's ceiling).
Example
Both responses below are shape illustrations — the live provider set and generations will differ.
routed_via is null when the requested provider answered directly; otherwise it names the mirror or free-tier route the router fell back to (so you always get an answer even if the first choice is briefly down).
Model availability is dynamic. Always call
list_providersfirst rather than hardcoding a key. The current Claude ids areclaude-fable-5,claude-opus-5,claude-sonnet-5,claude-opus-4-7,claude-sonnet-4-6, andclaude-haiku-4-5, but the live list is the source of truth.
Authentication
Create an API key at three.ws/dashboard/developers. Without it, paid models return a sign-in error and list_providers flags them with requiresAuth: true.
Requirements
- Node.js >= 20.
- Network access to
https://three.ws(or your ownTHREE_WS_BASE).
Environment variables
Errors
A failed tool call returns an MCP error result (isError: true) whose text is a single JSON object — { "ok": false, "error": "<code>", "message": "…" }, plus status and detail on upstream rejections:
If the requested provider fails mid-flight the router transparently falls back to a mirror or free tier and the reply's routed_via names the route taken — you only see an error when every route is exhausted.
Links
- Homepage: https://three.ws
- Changelog: https://three.ws/changelog
- Issues: https://github.com/nirholas/three.ws/issues
- License: Apache-2.0, see LICENSE
Part of the three.ws SDK suite — 3D AI agents, on-chain identity, and agent payments.
Website · Changelog · GitHub
Source: packages/brain-mcp/README.md at commit c8f2cde
Tools
0Version history
2- v0.1.4LatestOct 10, 2026
- v0.1.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Brain integrations

BrainDog
dog.brainOfficial publisher
BrainDog is a hosted record of projects, decisions and money that connected AI agents read before starting work and write their results into.

Codebase Brain
Published by GitHub account Nomannazir
Indexes a local or public git codebase so an assistant can search it, trace git history, check change impact and find stale docs, all with path:line citations.

Personal Brain
Published by GitHub account zhang-liz
Gives an AI assistant memory of your professional network, stored as a graph in FalkorDB, so it can look up contacts, find people by topic, and save who you…

Second Brain
Published by GitHub account ara-5
Shared Graph-RAG memory for AI agents: markdown vault, wikilink recall, tasks, messaging.

Make0 Brain
Published by GitHub account make0-official
A local, offline memory server that lets Claude Code, Cursor, Codex and other MCP agents share one versioned store of durable facts.