Skip to main content

MCP server for the Agimus data platform — connects AI coding tools to your ontology

Project description

Agimus MCP Server

Connects AI coding tools — Claude Desktop, Claude Code, Cursor, OpenAI Codex, and other Model Context Protocol clients — to the Agimus data platform. The server gives the AI live awareness of your ontology (entities, properties, links, types) and bundled reference docs for the Agimus Python SDK, so it writes correct code instead of guessing field names.

What the AI gets

Tools (13)

Discovery:

Tool What it does
agimus_list_entities Every entity, with PK, property/link counts
agimus_get_entity_schema Full schema for one entity (properties + rich link details)
agimus_list_links Every link in the ontology (both directions per link)
agimus_get_link Full details for a link by api_name
agimus_list_datasets All datasets, optionally filtered by source/name
agimus_get_dataset_schema Columns, types, row count + SDK usage snippet
agimus_whoami Tenant name, scope, rate limit for the current API key

Read (read-only — writes happen via the SDK in user code):

Tool What it does
agimus_query_objects Filter / sort / project / expand / paginate
agimus_get_object Single object by primary key
agimus_get_related_objects Traverse a link from one object (cursor-paginated)
agimus_count_objects Cheap COUNT(*) with optional filter
agimus_distinct_values Distinct values, optionally with frequency counts
agimus_aggregate group_by + metrics (count/sum/avg/min/max/...)

Resources

  • agimus://schema/entities/{entity} — live, full schema for one entity
  • agimus://docs/sdk-reference — the full Agimus Python SDK reference (sourced directly from the SDK's README so it never drifts)

Install & configure

The recommended path is uvx — it auto-installs the latest version on first run and keeps it isolated. No prior pip install is required.

Claude Code

Add to ~/.claude/claude_code_config.json:

{
  "mcpServers": {
    "agimus": {
      "command": "uvx",
      "args": ["agimus-mcp"],
      "env": { "AGIMUS_API_KEY": "agm_your_api_key_here" }
    }
  }
}

Cursor

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "agimus": {
      "command": "uvx",
      "args": ["agimus-mcp"],
      "env": { "AGIMUS_API_KEY": "agm_your_api_key_here" }
    }
  }
}

OpenAI Codex

Add to ~/.codex/config.toml:

[mcp_servers.agimus]
command = "uvx"
args = ["agimus-mcp"]
env = { AGIMUS_API_KEY = "agm_your_api_key_here" }

Claude Desktop

Add to claude_desktop_config.json (Claude → Settings → Developer → Edit Config):

{
  "mcpServers": {
    "agimus": {
      "command": "uvx",
      "args": ["agimus-mcp"],
      "env": { "AGIMUS_API_KEY": "agm_your_api_key_here" }
    }
  }
}

Alternative install: pip

If you prefer a pinned global install:

pip install agimus-mcp

Then replace "command": "uvx", "args": ["agimus-mcp"] with "command": "agimus-mcp" in any config above.

CLI options

agimus-mcp [--api-key agm_xxx] [--base-url URL] [--timeout SECONDS] [--log-level LEVEL]

Every flag has an environment-variable equivalent:

Flag Env var Default
--api-key AGIMUS_API_KEY (required)
--base-url AGIMUS_BASE_URL https://api.agimus.ai
--timeout AGIMUS_TIMEOUT 30
--log-level AGIMUS_LOG_LEVEL WARNING

Logs are written to stderr — stdout is reserved for the MCP stdio protocol.

Programmatic use

from agimus_mcp import create_server

create_server(api_key="agm_...").run()

Security model

  • The server authenticates with your Agimus API key — it can only see what the key allows.
  • It runs locally as a subprocess of your AI tool. No hosted server, no open ports.
  • All API calls go to https://api.agimus.ai (or your configured base URL) over HTTPS.

Development

This package lives in the Agimus monorepo at sdk/python-mcp/ alongside the agimus Python SDK that it wraps.

cd sdk/python-mcp
pip install -e ".[dev]"
pytest

The package depends on a published agimus SDK — for development against an unreleased SDK, install both in editable mode:

pip install -e ../python -e ".[dev]"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agimus_mcp-0.4.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agimus_mcp-0.4.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file agimus_mcp-0.4.0.tar.gz.

File metadata

  • Download URL: agimus_mcp-0.4.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for agimus_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0ac3a18e9d731aa43fb1c867ac4b4fd8ecc70416cbadffb3be17d276377f1e44
MD5 911861b8212213d4262a322554685ae5
BLAKE2b-256 b37dc386b5e2569b812eeeac7c6079e7bf46321adc4efa3be6b0b159e06fb949

See more details on using hashes here.

File details

Details for the file agimus_mcp-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: agimus_mcp-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for agimus_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35f4db3a51760a906ba9c8d6646113649d44abc6b11f647df15feb1377234b51
MD5 e007cc0c912ad872653f3c2f74f1de58
BLAKE2b-256 f52bcb582a050299af6a292fec184e041bb5658c78f0289c9df514cad17f8975

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page