Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

datomic-mcp

MCP.Pizza Chef: theronic

Datomic MCP Server integrates Datomic database querying capabilities into AI workflows using the Modex MCP library. It supports concurrent asynchronous queries and a wide range of Datomic API functions such as q, datoms, pull, and entity retrieval. Designed for real-time, structured database access, it allows AI models to interact directly with Datomic data sources, enhancing data-driven applications and intelligent automation.

Use This MCP server To

Enable AI models to query Datomic databases in real time Perform complex Datomic queries asynchronously via MCP Retrieve entities and datoms for AI-driven data analysis Integrate Datomic data access into AI-enhanced workflows Support multi-step reasoning with live database context Use Datomic pull and pull-many for structured data retrieval Leverage MCP to connect AI with enterprise Datomic stores

README

Datomic MCP Server

Built with Modex.

Set environment variable DATOMIC_URI in your MCP config. Example below.

Build Uberjar & Configure Claude Desktop

{
  "mcpServers": {
    "modex-datomic-mcp": {
      "command": "java",
      "args": ["-jar", "/Users/petrus/code/datomic-mcp/target/theronic-datomic-mcp-0.3.0.jar"],
      "env": {"DATOMIC_URI": "<your datomic URI here>"}
    }
  },
  "globalShortcut": ""
}

Datomic API Support

  • Concurrent queries (async message handling since Modex 0.3.0)
  • datomic.api/q
  • datomic.api/datoms
  • datomic.api/with (via q-with tool)
  • datomic.api/pull
  • datomic.api/pull-many
  • datomic.api/entity
  • datomic.api/touch
  • datomic.api/entid
  • datomic.api/transact – not sure if good idea :)
  • Send Progress Messages Connection Progress
  • Better cursor-based pagination
  • Stable db basis (currently each query runs (d/db conn)) – easy to fix.
  • d/as-of support. Related to basis above.

License

MIT Licence. Free for commercial & non-commercial use.

All I ask is that if you find a bug in datomic-mcp or Modex, please report it :)

Note that Modex itself has a different licence.

Author(s)

datomic-mcp FAQ

How do I configure the Datomic URI for the server?
Set the DATOMIC_URI environment variable in your MCP server config to your Datomic database URI.
Does the server support concurrent queries?
Yes, it supports asynchronous concurrent queries since Modex 0.3.0 for efficient query handling.
Which Datomic API functions are supported?
It supports datomic.api/q, datoms, pull, pull-many, entity, touch, entid, and with (via q-with tool).
Can the server handle transactions?
Currently, transact is not supported as it may not be advisable to allow AI models to perform transactions.
How do I run the server?
Build the Uberjar and run it with Java, passing the DATOMIC_URI environment variable as shown in the example config.
Is pagination supported for large query results?
Cursor-based pagination is planned but not yet implemented.
Can this server be used with multiple LLM providers?
Yes, it is provider-agnostic and works with OpenAI, Claude, Gemini, and others.
How does the server handle database state consistency?
Currently, each query runs a fresh (d/db conn), with plans for more stable db basis in future versions.