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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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-obsidiancorps-umami-mcp": {
"command": "npx",
"args": [
"-y",
"@obsidiancorps/umami-mcp"
],
"env": {
"UMAMI_API_KEY": "<YOUR_VALUE>",
"UMAMI_BASE_URL": "<VALUE>",
"UMAMI_TOKEN": "<YOUR_VALUE>",
"UMAMI_USERNAME": "<VALUE>",
"UMAMI_PASSWORD": "<YOUR_VALUE>",
"UMAMI_TWO_FACTOR_SECRET": "<YOUR_VALUE>",
"UMAMI_DEFAULT_WEBSITE_ID": "<VALUE>",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_BEARER_TOKEN": "<VALUE>",
"UMAMI_TIMEOUT_MS": "15000",
"MCP_ALLOWED_HOSTS": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "<VALUE>",
"UMAMI_TWO_FACTOR_CODE": "<VALUE>",
"UMAMI_ENABLE_WRITE_TOOLS": "false",
"UMAMI_MAX_RESPONSE_BYTES": "512000",
"UMAMI_ALLOW_INSECURE_HTTP": "<VALUE>",
"UMAMI_ENABLE_DESTRUCTIVE_TOOLS": "false"
}
}
}
}
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 |
|---|---|---|
| UMAMI_API_KEY secret | No | Umami Cloud API key. Use for Umami Cloud authentication. |
| UMAMI_BASE_URL | No | Umami root or full API base URL. Required for self-hosted authentication modes. |
| UMAMI_TOKEN secret | No | Pre-issued self-hosted token. Used with UMAMI_BASE_URL for self-hosted token authentication. |
| UMAMI_USERNAME | No | Self-hosted login username. Used with UMAMI_BASE_URL and UMAMI_PASSWORD for self-hosted login authentication. |
| UMAMI_PASSWORD secret | No | Self-hosted login password. Used with UMAMI_BASE_URL and UMAMI_USERNAME for self-hosted login authentication. |
| UMAMI_TWO_FACTOR_SECRET secret | No | Base32 setup seed for TOTP two-factor authentication. Optional for self-hosted login mode. Configure only one two-factor variable (this or UMAMI_TWO_FACTOR_CODE). |
| UMAMI_DEFAULT_WEBSITE_ID | No | Optional default website UUID to avoid site resolution for most calls. |
| MCP_HOST | No | HTTP bind address. Default is 127.0.0.1. Default: 127.0.0.1 |
| MCP_PORT | No | HTTP port. Default is 3000. Default: 3000 |
| MCP_TRANSPORT | No | Transport mode: stdio, http, or streamable-http. Default is stdio. Default: stdio |
| MCP_BEARER_TOKEN | No | Protects the HTTP MCP endpoint. Required for non-loopback HTTP binds. |
| UMAMI_TIMEOUT_MS | No | Upstream request timeout in milliseconds, between 100 and 120000. Default: 15000 |
| MCP_ALLOWED_HOSTS | No | Comma-separated hostnames for non-loopback HTTP. Required for non-loopback HTTP binds. |
| MCP_ALLOWED_ORIGINS | No | Comma-separated exact browser origins. Optional. |
| UMAMI_TWO_FACTOR_CODE | No | Current six-digit two-factor code for one-off login. Optional for self-hosted login mode. Configure only one two-factor variable (this or UMAMI_TWO_FACTOR_SECRET). |
| UMAMI_ENABLE_WRITE_TOOLS | No | Set to true to register non-destructive mutation tools. Default is false. Default: false |
| UMAMI_MAX_RESPONSE_BYTES | No | Maximum upstream response size in bytes, between 1 KB and 10 MB. Default: 512000 |
| UMAMI_ALLOW_INSECURE_HTTP | No | Set to true to allow non-local plain HTTP Umami URLs for an explicitly trusted private network only. Default is false. |
| UMAMI_ENABLE_DESTRUCTIVE_TOOLS | No | Set to true to register reset/delete tools; requires UMAMI_ENABLE_WRITE_TOOLS=true. Default is false. Default: false |