Deploy Swetrix Statistics MCP
MCP server for the Swetrix Statistics API - read-only analytics queries.
mcp-swetrix
Just deployed
Deploy and Host Swetrix Statistics MCP on Railway
Swetrix Statistics MCP is a remote Model Context Protocol server that exposes the Swetrix Statistics API as 34 read-only tools — traffic, performance, funnels, errors, goals, visitor profiles and filters — so an AI assistant like Claude can answer questions about your website analytics directly, without you writing a single query.
About Hosting Swetrix Statistics MCP
This template builds the swetrix-statistics-mcp-server package from the kieksme/mcp-swetrix monorepo and runs it in Streamable HTTP mode, listening on port 3000 behind a public Railway domain. At deploy time you'll be asked for your SWETRIX_API_KEY (from Swetrix → Account Settings → API keys); a random MCP_HTTP_AUTH_TOKEN bearer token is generated automatically to protect the /mcp endpoint from unauthenticated access. Once it's live, point any MCP-compatible client — Claude Desktop, Claude Code, or another agent — at https:///mcp with that bearer token to start querying your Swetrix data.
Common Use Cases
- Ask an AI assistant "what was my traffic like last week?" or "which pages have the highest bounce rate?" without leaving your chat client
- Generate automated weekly or monthly analytics summaries and reports powered by an LLM
- Diagnose funnel drop-off, conversion issues, and error spikes by letting the assistant query funnels, goals, and errors on demand
Dependencies for Swetrix Statistics MCP Hosting
- A Swetrix account (cloud or self-hosted) with an API key
- An MCP-compatible client, such as Claude Desktop, Claude Code, or another agent that supports the Streamable HTTP transport
Deployment Dependencies
- Swetrix documentation — where to find your API key and browse the underlying analytics API
- Model Context Protocol specification — the protocol this server implements
Why Deploy Swetrix Statistics MCP on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Swetrix Statistics MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
mcp-swetrix
kieksme/mcp-swetrixSWETRIX_API_KEY
Your Swetrix API key (Account Settings -> API). Required to authenticate statistics queries.
