# three.ws Brain

> three.ws Brain is an open-source MCP server. List LLM providers and run chat completions through the three.ws multi-provider router. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://three.ws
- **Repository:** https://github.com/nirholas/three.ws/tree/HEAD/packages/brain-mcp
- **MCP Registry name:** io.github.nirholas/brain-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add brain-mcp --env THREE_WS_API_KEY='<THREE_WS_API_KEY>' -- npx -y @three-ws/brain-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/brain-mcp"
      ],
      "env": {
        "THREE_WS_API_KEY": "<THREE_WS_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/brain-mcp"
      ],
      "env": {
        "THREE_WS_API_KEY": "<THREE_WS_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "brain-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/brain-mcp"
      ],
      "env": {
        "THREE_WS_API_KEY": "<THREE_WS_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/brain-mcp"
      ],
      "env": {
        "THREE_WS_API_KEY": "<THREE_WS_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/brain-mcp"
      ],
      "env": {
        "THREE_WS_API_KEY": "<THREE_WS_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is three.ws Brain free?

Yes. three.ws Brain is open source, so you can use and self-host it for free.

### How do I add three.ws Brain to Claude Code?

Run this command in your terminal: claude mcp add brain-mcp --env THREE_WS_API_KEY='<THREE_WS_API_KEY>' -- npx -y @three-ws/brain-mcp

---
Source: https://ai-powered.com/mcp/three-ws-brain
