# Synapse MCP server

> An agent-aware SDK that simplifies building MCP ext-apps with typed tool calls, reactive data sync, and React hooks.

- Repository: https://github.com/NimbleBrainInc/synapse
- Page: https://hostedmcp.org/servers/nimblebraininc/synapse
- Transport: stdio
- Stars: 2
- License: MIT

## Install

### Claude Code

```sh
claude mcp add synapse -- npx -y @nimblebrain/synapse
```

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

```json
{
  "mcpServers": {
    "synapse": {
      "command": "npx",
      "args": [
        "-y",
        "@nimblebrain/synapse"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "synapse": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nimblebrain/synapse"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"synapse","type":"stdio","command":"npx","args":["-y","@nimblebrain/synapse"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "synapse": {
      "command": "npx",
      "args": [
        "-y",
        "@nimblebrain/synapse"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add synapse -- npx -y @nimblebrain/synapse
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.synapse]
command = "npx"
args = ["-y", "@nimblebrain/synapse"]
```

### Gemini CLI

```sh
gemini mcp add -s user synapse npx -- -y @nimblebrain/synapse
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "synapse": {
      "command": "npx",
      "args": [
        "-y",
        "@nimblebrain/synapse"
      ]
    }
  }
}
```

## FAQ

### What makes Synapse different from raw ext-apps?

Synapse provides an enhancement layer that handles zero-config handshakes, typed tool calls, reactive data sync, theme tracking, and agent context.

### Can I use Synapse with a Python MCP server?

Yes, you can use the nimblebrain-synapse PyPI package to ship a self-contained UI component for Python servers.

### How does Synapse handle theming and fonts?

The SDK uses CSS variables for theming so it adopts the host's palette without re-renders, and it can load host-provided @font-face CSS into the app document.

### Does Synapse support code generation?

Yes, it includes a CLI and programmatic tools to generate TypeScript types from manifests, running servers, or JSON schemas.
