Install yandex-metrika-mcp-server for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"artgas1-yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"yandex-metrika-mcp-server@3.3.1"
],
"env": {
"YANDEX_API_KEY": "YOUR_YANDEX_API_KEY",
"METRIKA_PROFILE": "",
"METRIKA_ALLOW_WRITES": "",
"METRIKA_TOOLS": "",
"METRIKA_TRAFFIC_FILTER": "",
"METRIKA_MAX_OUTPUT_CHARS": ""
}
}
}
}