MCP server · Analytics
Cosmos Semantic MCP server
by WiliamRosa
Your AI gets the same trusted business numbers from any database, with the formula and rules attached.
Cosmos Semantic is a free, open-source tool that keeps one agreed definition of your business numbers, like revenue or active customer. It connects to your AI over MCP so the AI asks for the official number instead of writing its own SQL. It is handy for anyone who reports numbers and is tired of two teams getting two different answers.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. It cannot see your company's databases or know what "revenue" officially means. An MCP server is a small helper program that gives your AI a new skill, here a connection to Cosmos Semantic, where your business definitions live. Once connected, your AI can look up the agreed metric and bring back the number with its formula and rules.
What this MCP server does
You ask your AI a business question, like revenue by region last month. The AI uses this helper to find the right metric in your company's glossary. The helper then runs the approved formula against your database, applying the rules and row filters that go with it. You get the number back, plus the formula, the rules used, the reference date and a fingerprint so you can check it later. If you want, you can also replay an old answer to see whether the number changed and why.
What you can do with it
- Ask for a governed metric and get the official number, not a guess
- See the formula, business rules and filters behind every answer
- List the real values of a field, like states or segments, so the AI filters correctly
- Check what a change to a rule or metric would affect and who uses it
- Replay a past answer to see if the number moved and what caused it
- Compare a governed metric with an old SQL report and see where they differ
- Keep personal data out of the AI's reach with row filters and sensitivity rules
Try asking your AI
- “What was revenue by customer segment last month?”
- “Show me the active customer count for the Northeast region as of June 30.”
- “Which states had revenue above 1.6 million, top three?”
- “What values does customers.state have, so I can filter by the right one?”
What it gives back to you
You get the numbers in your chat, usually as a small table with the metric and the breakdown you asked for. Alongside it, the answer can include the expanded formula, the rules that applied, the reference date and hashes. If you ask about a concept or a rule, you get a plain explanation and whether it is healthy, needs attention, is failing or is unchecked. If you ask what a change affects, you get a grouped list by owner, systems and processes.
Before you start
What you need
- Python 3.11 or newer, or Docker if you prefer
- A Cosmos Semantic model of your metrics and rules (the quickstart has a demo one)
- Connection details for your database, or just DuckDB to try the demo
- An API key or your company login (OIDC) so the server knows who is asking
Good to know
It reads your business data and can return governed numbers, so make sure your row filters and sensitivity rules are set up before you connect it to real personal data.
Install it with your AI
Add Cosmos Semantic MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check Cosmos Semantic MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,960 MCP servers here for you.
Who it's for
Data analysts, finance and operations people, and anyone who reports numbers and needs one agreed answer across teams and databases.



