Koskamo

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.

Cosmos Semantic MCP logo, by WiliamRosaCommunity listingLocal stdioSource reviewed; not executedPublished by WiliamRosa
You need:pip install "cosmos-semantic[duckdb,testdata,server]"
Vendor documentation

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

Community listingRegistry 0.3.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

cosmos-semantic 0.3.0

pypiuvx
cosmos-semantic package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.