Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-chase-roohms-legendkeeper-mcp": {
"command": "uvx",
"args": [
"legendkeeper-mcp"
],
"env": {
"LEGENDKEEPER_API_KEY": "<YOUR_VALUE>",
"LEGENDKEEPER_READ_ONLY": "false",
"MCP_HOST": "127.0.0.1 (0.0.0.0 in Docker)",
"MCP_PATH": "/mcp",
"MCP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_AUTH_TOKEN": "<VALUE>",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_AUTH_TOKEN_FILE": "<VALUE>",
"LEGENDKEEPER_TIMEOUT": "30",
"LEGENDKEEPER_BASE_URL": "https://www.legendkeeper.com",
"LEGENDKEEPER_LOG_LEVEL": "INFO",
"LEGENDKEEPER_PROJECT_ID": "discovered",
"LEGENDKEEPER_MAX_RETRIES": "3",
"LEGENDKEEPER_UPLOAD_ROOT": "unrestricted (/uploads in Docker)",
"LEGENDKEEPER_API_KEY_FILE": "<VALUE>",
"MCP_ALLOW_UNAUTHENTICATED": "false",
"LEGENDKEEPER_MAX_UPLOAD_MB": "25",
"LEGENDKEEPER_API_KEY_<NAME>": "<VALUE>",
"LEGENDKEEPER_DEFAULT_PROJECT": "default, else the first name",
"LEGENDKEEPER_ALLOW_URL_UPLOADS": "true",
"LEGENDKEEPER_PROJECT_ID_<NAME>": "discovered",
"LEGENDKEEPER_API_KEY_<NAME>_FILE": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| LEGENDKEEPER_API_KEY secret | Yes | API key for the project named `default`. |
| LEGENDKEEPER_READ_ONLY | No | Only register reading tools; `api_request` allows GET only. Default: false |
| MCP_HOST | No | HTTP bind address. Default: 127.0.0.1 (0.0.0.0 in Docker) |
| MCP_PATH | No | HTTP endpoint path. Default: /mcp |
| MCP_PORT | No | HTTP port. Default: 8000 |
| MCP_TRANSPORT | No | `stdio` or `http` (streamable HTTP). Default: stdio |
| MCP_AUTH_TOKEN | No | Bearer token required on every HTTP request (except `/healthz`). |
| MCP_ALLOWED_HOSTS | No | Comma-separated `host:port` values; enables DNS-rebinding protection (e.g. `localhost:8000`). |
| MCP_AUTH_TOKEN_FILE | No | Read the bearer token from a file. |
| LEGENDKEEPER_TIMEOUT | No | Request timeout in seconds. Default: 30 |
| LEGENDKEEPER_BASE_URL | No | API origin (for proxies and mocks). Default: https://www.legendkeeper.com |
| LEGENDKEEPER_LOG_LEVEL | No | Log level (logs go to stderr; keys are never logged). Default: INFO |
| LEGENDKEEPER_PROJECT_ID | No | Skip the lookup of the project id behind a key. Default: discovered |
| LEGENDKEEPER_MAX_RETRIES | No | Retries for 429/5xx/network errors. Default: 3 |
| LEGENDKEEPER_UPLOAD_ROOT | No | `upload_image` may only read files under this directory. Default: unrestricted (/uploads in Docker) |
| LEGENDKEEPER_API_KEY_FILE | No | Read the key from a file (Docker secrets). |
| MCP_ALLOW_UNAUTHENTICATED | No | Permit HTTP on a non-loopback address without a token (not recommended). Default: false |
| LEGENDKEEPER_MAX_UPLOAD_MB | No | Maximum image size. Default: 25 |
| LEGENDKEEPER_API_KEY_<NAME> | No | Additional worlds. `LEGENDKEEPER_API_KEY_HOMEBREW` becomes project `homebrew`. |
| LEGENDKEEPER_DEFAULT_PROJECT | No | Which world tools use when `project` is omitted. Default: default, else the first name |
| LEGENDKEEPER_ALLOW_URL_UPLOADS | No | Allow `upload_image` to download from http(s) URLs. Default: true |
| LEGENDKEEPER_PROJECT_ID_<NAME> | No | Skip the lookup of the project id behind an additional key. Default: discovered |
| LEGENDKEEPER_API_KEY_<NAME>_FILE | No | Read an additional world's key from a file (Docker secrets). |