Purpose: Cosmos Semantic Platform is aimed at teams that need to let AI agents or applications query business data. The core problem it solves is: when agents write SQL directly against raw tables, "revenue" may have three definitions, and "active customer" has two definitions across teams, 60 days and 90 days, and the numbers look correct but no one can explain them. The platform defines metrics, business rules, and concepts centrally once and provides them to agents through MCP, rather than letting agents guess SQL, and attaches evidence to every answer.
Main capabilities:
- Semantic model and ontology: define metrics, business rules, and concepts in YAML, following the dbt Semantic Layer vocabulary in format and providing a JSON Schema; Cube and dbt are import sources and export targets, not dependencies.
- Multi-database consistency: the same request returns the same result across data sources such as BigQuery, Databricks, Snowflake, DuckDB, Postgres, SQL Server, MySQL/MariaDB, Oracle, and Trino/Starburst.
- REST API and MCP: cosmos serve starts the /v1 REST API and the /mcp MCP server in the same process, with interactive documentation at /docs; MCP tools include search_concepts, explain, list_members, query, show_sql, replay, impact, dimension_values, and reconcile.
- Verifiable numbers: provides evidence, replay, reconciliation (reconcile), impact analysis (impact), and bootstrap; cosmos check records rule tests and reconciliation results, and the console shows health over time.
- Business context: rule versions, usage and cost, knowledge graph, Power BI import, AI-assisted discovery, retail package, SKOS export.
- Read-only console: /console provides an English or Portuguese interface, showing metric health and ownership, business flow diagrams, a business language catalog, reproducible audit answers, and usage and cost by agent.
- Identity and security: supports OIDC identity; remote MCP clients access /mcp as an OAuth protected resource; personal data does not reach agents; each call is [per token]Runs and audits under the associated user identity.
Usage: Requires Python 3.11+ and uv; after cloning from the repository, follow the Quickstart. cosmos serve starts the REST API and MCP. Local MCP clients (Claude Desktop, Claude Code) use stdio transport: cosmos mcp -m ... -c ... and set COSMOS_API_KEY. Query requests support parameters such as metrics, dimensions, filters, metric_filters, order_by, limit, as_of, and rules_as_of; filters can be written as expression strings or structured objects, and values are escaped by the server according to the data source dialect. Each data source configures its connection via environment variables and supports schema_map to map different schemas.
Use cases: data teams that need unified metric definitions, enterprises providing governed data access to AI agents, analytics platforms that maintain consistent numbers across multiple databases, and decision-making scenarios that require auditing and an evidence chain.
Limitations: The project status is that phases 0 through 3 are implemented, and it is still progressing along the roadmap; the MVP queries source databases directly, with no intermediate infrastructure, and caching will be provided later; Trino/Starburst are in preview status; reconciliation cases cannot apply row filters and can run at most once per minute; dimension value lists return at most 100 values, and dimensions with more than 10,000 distinct values are marked as truncated; the open-source core is Apache 2.0, and the paid portion covers enterprise identity, auditing, managed operations, and support. Specific pricing is not yet provided.