← All IntegrationsIntegration
Analytics for VS Code
VS Code is the most popular editor in the world, and its built-in MCP support means you can connect BetterMeter's MCP server directly into your development environment. Query traffic data through the chat panel and check analytics without opening a browser.
MCP setup for VS Code
VS Code supports MCP servers through its built-in chat and agent features. Add BetterMeter to your workspace or user settings and the analytics tools become available in any chat panel — whether you're using Copilot, a third-party extension, or VS Code's native chat.
.vscode/mcp.json
{
"servers": {
"bettermeter": {
"command": "npx",
"args": ["-y", "@bettermeter/cli@latest", "mcp"],
"env": {
"BETTERMETER_API_KEY": "bm_..."
}
}
}
}What you get via MCP
- 01 Chat queries — Ask about traffic, top pages, referrers in any chat panel
- 02 Agent mode — Copilot agent mode can call BetterMeter tools as part of multi-step tasks
- 03 Any AI chat — Works with Copilot, Continue, Cline, or any extension that supports MCP
- 04 Multi-root workspaces — Different sites per workspace folder
Lightweight by design
The MCP server runs as a separate process and only activates when you interact with it. No background polling, no telemetry, no impact on editor performance. VS Code stays fast.
Chat Panel
Conversational queries
Agent Mode
Multi-step tasks
Zero Impact
On-demand only
Multi-Root
Per-folder sites
Any AI Chat
Copilot, Continue, etc.