Railway

Deploy Swetrix Statistics MCP

MCP server for the Swetrix Statistics API - read-only analytics queries.

Deploy Swetrix Statistics MCP

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

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

More templates in this category

View Template
Matomo Analytics + MariaDB
Privacy-friendly analytics with MariaDB and persistent volumes.

leodev
0
View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

zǝʇɹoɔ oɓıɹpoɹ
18
View Template
SubTrackr
Self-hosted Subscription Tracker

amnesia
3