# Toolception MCP server

> Manages dynamic MCP toolsets to prevent LLM overwhelm by enabling only relevant tools on demand via runtime control or static startup.

- Repository: https://github.com/code-rabi/toolception
- Page: https://hostedmcp.org/servers/code-rabi/toolception
- Transport: stdio
- Stars: 6
- License: Apache-2.0

## Install

### Claude Code

```sh
claude mcp add toolception -- npx -y toolception
```

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

```json
{
  "mcpServers": {
    "toolception": {
      "command": "npx",
      "args": [
        "-y",
        "toolception"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "toolception": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "toolception"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "toolception": {
      "command": "npx",
      "args": [
        "-y",
        "toolception"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add toolception -- npx -y toolception
```

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

```toml
[mcp_servers.toolception]
command = "npx"
args = ["-y", "toolception"]
```

### Gemini CLI

```sh
gemini mcp add -s user toolception npx -- -y toolception
```

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

```json
{
  "mcpServers": {
    "toolception": {
      "command": "npx",
      "args": [
        "-y",
        "toolception"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `API_TOKEN` | no | no |  |
| `USER_ID` | no | no |  |

## Tools (5)

- `enable_toolset`
- `disable_toolset`
- `list_toolsets`
- `describe_toolset`
- `list_tools`

## FAQ

### What is the difference between DYNAMIC and STATIC startup modes?

DYNAMIC mode allows enabling toolsets on demand via meta-tools for better prompt efficiency, while STATIC mode preloads specific or all toolsets at startup for stable environments.

### Can I restrict tool access for different users?

Yes, using permission-based access control, you can enforce client-specific toolset permissions via HTTP headers or a server-side configuration map.

### What version of Zod is required?

Toolception requires Zod 4 (specifically ^4.6.7); Zod 3 schemas are not supported and will result in validation errors.
