three.ws Brain

v0.1.4
io.github.nirholas/brain-mcp Checked 1 hour ago Published 1 month ago

List LLM providers and run chat completions through the three.ws multi-provider router.

Values you need

VariableWhat it is
THREE_WS_BASEoptional Base URL of the three.ws API that fronts the LLM router (/api/brain/chat). Override only when self-hosting or targeting a preview deployment. Default: https://three.ws
THREE_WS_API_KEYoptional secret Optional three.ws API key (sk_live_… / sk_test_…) or OAuth access token, sent as a Bearer token. Required only to use paid first-party flagships (Claude, GPT-5, o3, Grok, Qwen Plus, DeepSeek). Free open-weight tiers (GPT-OSS 120B, NVIDIA NIM models) work with no key. Create one at https://three.
THREE_WS_TIMEOUT_MSoptional Per-request timeout in milliseconds. Chat completions stream server-side and are collapsed into a single reply, so this is generous by default to ride out a long flagship answer. Default: 120000

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add brain-mcp -- npx -y @three-ws/brain-mcp@0.1.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "brain-mcp": {
      "args": [
        "-y",
        "@three-ws/brain-mcp@0.1.4"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "brain-mcp": {
      "args": [
        "-y",
        "@three-ws/brain-mcp@0.1.4"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "brain-mcp": {
      "args": [
        "-y",
        "@three-ws/brain-mcp@0.1.4"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.brain-mcp]
command = "npx"
args = ["-y", "@three-ws/brain-mcp@0.1.4"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_providers, chat.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json