---
title: "Deploy Swetrix Statistics MCP"
description: "MCP server for the Swetrix Statistics API - read-only analytics queries."
category: "Analytics"
url: https://railway.com/deploy/swetrix-statistics-mcp
---

# Deploy Swetrix Statistics MCP

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

**[Deploy Swetrix Statistics MCP on Railway](https://railway.com/template/swetrix-statistics-mcp)**

- **Creator:** André Lademann's Projects
- **Category:** Analytics

## Template content

### mcp-swetrix

- **Source:** kieksme/mcp-swetrix
- **Public domain:** Yes

## Documentation

# Deploy and Host Swetrix Statistics MCP on Railway

Swetrix Statistics MCP is a remote [Model Context Protocol](https://modelcontextprotocol.io) 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](https://github.com/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](https://swetrix.com) 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](https://swetrix.com/docs) — where to find your API key and browse the underlying analytics API
- [Model Context Protocol specification](https://modelcontextprotocol.io) — 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.


## Similar templates

- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.
- [Bugsink](https://railway.com/deploy/bugsink) — Self-hosted Error Tracking. Sentry-SDK compatible
- [SubTrackr](https://railway.com/deploy/bscottsubtrackr) — Self-hosted Subscription Tracker

Open this page in a browser: https://railway.com/deploy/swetrix-statistics-mcp
