Cosmos Semantic MCP
An open-source semantic layer with an ontology at its core, providing governed metrics and business rules for AI agents. It serves concepts over MCP, generates deterministic SQL, and attaches verifiable evidence to every answer across multiple databases.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Define governed metrics and business rules
- Serve metrics to AI agents via MCP
- Generate deterministic SQL with evidence
- Reconcile metrics with legacy SQL reports
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
cosmos-semantic 0.3.0
{
"version": "0.3.0",
"transport": "stdio",
"identifier": "cosmos-semantic",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
},
{
"name": "--model",
"type": "named",
"valueHint": "semantic_dir",
"isRequired": true,
"description": "Directory with the semantic model (YAML)"
},
{
"name": "--connections",
"type": "named",
"valueHint": "connections_yml",
"isRequired": true,
"description": "connections.yml with the data sources"
}
],
"runtimeArguments": [
{
"name": "--with",
"type": "named",
"value": "cosmos-semantic[server,duckdb]",
"description": "The MCP server and a data source driver; use postgres, databricks, snowflake, oracle, mysql or sqlserver for yours"
}
],
"environmentVariables": [
{
"name": "COSMOS_API_KEY",
"isRequired": true,
"description": "The caller's key; its user context feeds the model's row filters"
},
{
"name": "COSMOS_DEV_API_KEYS",
"description": "YAML file with development keys (local use); production uses an OIDC provider"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"cosmos-semantic-mcp": {
"command": "uvx",
"args": [
"cosmos-semantic==0.3.0",
"mcp"
],
"env": {
"COSMOS_API_KEY": "<YOUR_COSMOS_API_KEY>",
"COSMOS_DEV_API_KEYS": "<YOUR_COSMOS_DEV_API_KEYS>"
}
}
}
}Cline
{
"mcpServers": {
"cosmos-semantic-mcp": {
"command": "uvx",
"args": [
"cosmos-semantic==0.3.0",
"mcp"
],
"env": {
"COSMOS_API_KEY": "<YOUR_COSMOS_API_KEY>",
"COSMOS_DEV_API_KEYS": "<YOUR_COSMOS_DEV_API_KEYS>"
}
}
}
}VS Code
{
"servers": {
"cosmos-semantic-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"cosmos-semantic==0.3.0",
"mcp"
],
"env": {
"COSMOS_API_KEY": "<YOUR_COSMOS_API_KEY>",
"COSMOS_DEV_API_KEYS": "<YOUR_COSMOS_DEV_API_KEYS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"cosmos-semantic-mcp": {
"command": "uvx",
"args": [
"cosmos-semantic==0.3.0",
"mcp"
],
"env": {
"COSMOS_API_KEY": "<YOUR_COSMOS_API_KEY>",
"COSMOS_DEV_API_KEYS": "<YOUR_COSMOS_DEV_API_KEYS>"
}
}
}
}Let your agent find its tools
Find servers like Cosmos Semantic MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.