Sales Analyzer MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sales Analyzer MCPAnalyze week 32 for sales anomalies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sales Analyzer MCP Server
A remote MCP server that exposes sales anomaly detection as tools Claude can call. It bundles a deterministic sample dataset — one year of daily sales for a fictional café, "Bean & Leaf" — and analyzes it with robust statistics (median absolute deviation), so anomalies like closures, pricing glitches, and structural product declines are detected in code, not guessed by the model.
The server returns only computed data: no LLM calls, no API keys, fully stateless. Built with the official MCP Python SDK (FastMCP) over the Streamable HTTP transport.
Tools
Tool | What it returns |
| The 53 weeks in the dataset with date ranges, row counts, and completeness |
| Weekly revenue, totals by product, week-over-week changes, top movers, daily series, and flagged anomalies with severity and reason |
| A product's full weekly units/revenue series |
Bad inputs (week 99, unknown product) return a clear {"error": ...} message instead
of failing.
Related MCP server: MCP Tabular Data Analysis Server
Project layout
server.py— FastMCP server: transport, health check, and the three toolsanalytics.py— stdlib-only analytics: weekly aggregation + MAD-based anomaly detectiongenerate_sample_data.py— seeded generator for the sample dataset (byte-identical every run)data/sales_2025.csv— the bundled dataset (regenerated at startup if missing)test_client.py— smoke test that exercises every tool against a running server
Run locally
pip install -r requirements.txt
python server.pyThe server listens on port 8000 (override with the PORT env var):
Landing page / health check:
GET http://localhost:8000/→ an HTML page (HTTP 200)MCP endpoint:
http://localhost:8000/mcp
Verify all tools in a second terminal:
python test_client.pyDeploy to Render (free tier)
Push this repo to GitHub.
In the Render dashboard, click New + → Blueprint and select the repo —
render.yamlconfigures everything (Python web service, free plan,python server.pystart command).Or manually: New + → Web Service, build command
pip install -r requirements.txt, start commandpython server.py.
Wait for the deploy to go live. Your MCP endpoint is:
https://<your-service>.onrender.com/mcpSanity-check it: opening
https://<your-service>.onrender.com/in a browser shows the landing page (which also serves as the health check).
Note: free-tier services spin down after ~15 minutes of inactivity; the first request after that takes ~30-60 seconds while the instance cold-starts. The server is stateless, so this is harmless — retry once if a first call times out.
Add to Claude as a custom connector
In Claude (web or desktop), go to Settings → Connectors.
Click Add custom connector.
Enter the URL ending in
/mcp, e.g.https://sales-analyzer-mcp.onrender.com/mcp, and add it. No authentication is required.In a chat, enable the connector from the tools menu, then ask something like:
Which weeks in the sales data look anomalous, and what happened in week 32?
Claude will call list_weeks, analyze_week, and get_product_history as needed and
reason over the returned figures.
About the sample data
The dataset (6 products × 365 days of 2025) has realistic weekly rhythm, seasonality, and growth, plus four hidden anomalies the detectors rediscover:
a 5-day closure in mid-March (pipe burst),
a one-day viral spike in May,
a week of 10x-inflated Latte revenue in August (decimal error — units normal),
a permanent Blueberry Muffin collapse from October (supplier problem).
The generator is seeded, so the CSV is identical on every run.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sakqo/sales-analyzer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server