Skip to main content

ogm-mcp-skills

MCP stdio server and AI Agent Skills for Google Antigravity, Cursor, Claude Code, OpenCode, Hermes Agent, OpenClaw, and OpenAI Codex to OpenGraphMemory and the Codebase Knowledge Graph.

The MCP server uses authenticated OpenGraphMemory REST APIs only. It is stateless: no local database, session mapping, direct PostgreSQL, Neo4j, or object-store access.

Status

Alpha. PyPI releases are published from GitHub Actions on v* tags. Source install is also supported for development.

Tools

  • ogm_health
  • ogm_list_datasets
  • ogm_search_entities
  • ogm_get_entity
  • ogm_get_neighbors
  • ogm_find_path
  • ogm_get_subgraph
  • ogm_get_graph
  • ogm_get_evidence
  • ogm_get_relation_evidence
  • ogm_retrieval_query
  • ogm_upload_document
  • ogm_memory_list_episodes
  • ogm_memory_get_episode
  • ogm_memory_search
  • ogm_memory_create_episode
  • ogm_memory_append_attempt
  • ogm_memory_record_outcome
  • ogm_memory_feedback_episode
  • ogm_memory_supersede_episode
  • ogm_memory_feedback_pattern
  • ogm_memory_supersede_pattern
  • ogm_search_code_symbols
  • ogm_get_code_call_graph
  • ogm_get_code_chunks
  • ogm_recall_code_memory
  • ogm_record_code_fix
  • ogm_sync_code_file
  • ogm_index_codebase

Read tools inspect PostgreSQL-authoritative graph and Agent Memory data. Agent Memory results are historical claims: inspect recorded evidence and verifiers before relying on them. personal-safe permits reviewed document upload, additive Agent Memory records, and code sync; memory-curator additionally permits memory feedback and supersession. No delete, admin, project-create, relation-review, analytics-refresh, semantic-retrieval, or automatic conversation-ingestion tools exist.

Install

Install from PyPI with uv:

uv tool install ogm-mcp-skills

Or run without installing:

uvx ogm-mcp-skills==0.2.2 --version
### Automated 1-Command Setup

Automatically copy `SKILL.md` and merge MCP server configuration into your installed agent harness (Antigravity, Gemini CLI, Claude Desktop, Cursor, etc.):

```bash
ogm-mcp-skills setup

Or run directly without installing:

uvx ogm-mcp-skills setup

For source development:

git clone https://github.com/ardiannurcahya/ogm-mcp-skills.git "$HOME/src/ogm-mcp-skills"
cd "$HOME/src/ogm-mcp-skills"
uv sync --locked

Configure

Set these environment variables before starting your MCP client:

OGM_BASE_URL=http://localhost:8000
OGM_API_KEY=<project-api-key>
OGM_PROJECT_ID=<project-uuid>
OGM_PERMISSION_PROFILE=read-only

Use OGM_PERMISSION_PROFILE=read-only for graph and Agent Memory retrieval. Use OGM_PERMISSION_PROFILE=personal-safe for reviewed uploads and additive Agent Memory records. Use memory-curator only for reviewed feedback and supersession.

Optional upload roots:

OGM_UPLOAD_ROOTS=/absolute/path/to/allowed/docs

More options: Configuration.

MCP Client Setup

Claude Code

Add MCP server config to project .mcp.json:

{
  "mcpServers": {
    "ogm": {
      "command": "uvx",
      "args": ["ogm-mcp-skills==0.2.2"],
      "env": {
        "OGM_BASE_URL": "${OGM_BASE_URL}",
        "OGM_API_KEY": "${OGM_API_KEY}",
        "OGM_PROJECT_ID": "${OGM_PROJECT_ID}",
        "OGM_PERMISSION_PROFILE": "${OGM_PERMISSION_PROFILE}"
      }
    }
  }
}

Verify:

claude mcp list

OpenCode

Add MCP server config to opencode.json or opencode.jsonc:

{
  "mcp": {
    "ogm": {
      "type": "local",
      "command": ["uvx", "ogm-mcp-skills==0.2.2"],
      "environment": {
        "OGM_BASE_URL": "{env:OGM_BASE_URL}",
        "OGM_API_KEY": "{env:OGM_API_KEY}",
        "OGM_PROJECT_ID": "{env:OGM_PROJECT_ID}",
        "OGM_PERMISSION_PROFILE": "{env:OGM_PERMISSION_PROFILE}"
      },
      "enabled": true
    }
  }
}

Restart OpenCode after editing config.

Hermes

Add server under mcp_servers:

mcp_servers:
  ogm:
    command: "uvx"
    args:
      - "ogm-mcp-skills==0.2.2"
    env:
      OGM_BASE_URL: "${OGM_BASE_URL}"
      OGM_API_KEY: "${OGM_API_KEY}"
      OGM_PROJECT_ID: "${OGM_PROJECT_ID}"
      OGM_PERMISSION_PROFILE: "${OGM_PERMISSION_PROFILE}"
    enabled: true

Verify:

hermes mcp test ogm

For source development, replace uvx ogm-mcp-skills==0.2.1 with:

uv run --project /absolute/path/ogm-mcp-skills ogm-mcp-skills

MCP uses stdio. Diagnostics go to stderr.

Use

After MCP server is connected, ask your agent to use OGM tools. Start with health and dataset discovery:

Call ogm_health, then ogm_list_datasets.

Search entities in one dataset:

{"dataset_id":"dataset-id","q":"OpenGraphMemory","limit":10}

Inspect graph context with ogm_get_entity, ogm_get_neighbors, ogm_get_subgraph, ogm_get_graph, or ogm_find_path. Use ogm_get_relation_evidence or ogm_get_evidence before making evidence-backed claims.

Retrieve relevant operational experience with ogm_memory_search. Create an episode, append attempts, and record a verified outcome only when profile is personal-safe. Feedback and supersession require memory-curator.

Upload documents only when profile is personal-safe and file path is under OGM_UPLOAD_ROOTS:

Call ogm_upload_document with an approved local file path and dataset/project context.

More Docs

Performance & Token Economics

The MCP server acts as an efficient bridge, converting broad file exploration queries into compact, structured graph and memory payloads:

Workload Raw LLM Context Dump OGM MCP Structured Payload Measured Reduction
Codebase Symbol Lookup ~40k–80k tokens (reading entire folders) ~500–1.5k tokens (ogm_get_code_call_graph) ~90%–95%
Known Bug / Solution Recall ~60k–150k tokens (3–5 turn trial & error) ~1.5k–3k tokens (ogm_recall_code_memory) ~75%–90%
Single-File Codebase Sync Full repo re-index ~10ms delta AST sync (ogm_sync_code_file) Instant

Validation

uv sync --dev --locked
uv run ruff format --check .
uv run ruff check .
uv run mypy src
uv run pytest -q
uv build

Security

Use project-scoped keys. Keep .env and keys outside upload roots. Start read-only; use personal-safe only for reviewed writes; reserve memory-curator for memory governance. See security.

License

MIT. See LICENSE.

Release files for ogm-mcp-skills 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ogm-mcp-skills 0.2.3
File Size Uploaded
ogm_mcp_skills-0.2.3.tar.gz 109.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ogm-mcp-skills 0.2.3
File Interpreter ABI Platform
ogm_mcp_skills-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 142.6 kB

Release files / ogm_mcp_skills-0.2.3.tar.gz

Download URL ogm_mcp_skills-0.2.3.tar.gz
Size 109.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ef91cd37d0c73c70c1edbf9f939149fe047abe24be6239adb63239837ebe047
BLAKE2b-256 checksum
How to use checksums
06e204de8917e8b7678b2cd490a5954b48a312110f054536718c9f14989bca0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.15

Release files / ogm_mcp_skills-0.2.3-py3-none-any.whl

Download URL ogm_mcp_skills-0.2.3-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3a577a546e12278b02352a4fa9cafb8bbe7a77aae4c974bab3a5bb8a7916e72
BLAKE2b-256 checksum
How to use checksums
28678263dcb60ae12054bcff1b067f18d4d3dd39c061418d703f866f00ef4dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page