Home / MCP / Datomic MCP Server
Runs a Datomic MCP server via Modex, enabling MCP clients to query and manage Datomic data through a Java-based runtime.
Configuration
View docs{
"mcpServers": {
"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>"
}
}
}
}This MCP server lets you run a Datomic MCP instance built with Modex, enabling you to query and interact with your Datomic data through MCP clients. It provides a local, self-contained way to run the Datomic MCP server in your environment and connect to your Datomic URI securely.
You run the Datomic MCP server locally and connect your MCP client to it. The server exposes several Datomic API capabilities, including querying and data retrieval, as well as core entity functions. You should configure your client to point at the local server or any reachable MCP endpoint, and provide the required Datomic URI so the server can access your data source.
Prerequisites: ensure you have Java installed on your system.
Prepare your MCP configuration by using the following JSON structure. Replace <your datomic URI here> with your actual Datomic URI. Save this configuration to a file that your MCP client will read, or load it in your MCP runtime as appropriate.
{
"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": ""
}The server is started by running the Java command shown in the configuration. Provide your actual Datomic URI in the environment variable so the MCP server can connect to your Datomic instance.
The server supports a range of Datomic API calls. Available capabilities include the following: datomic.api/q, datomic.api/datoms, datomic.api/with (via q-with), datomic.api/pull, datomic.api/pull-many, datomic.api/entity, datomic.api/touch, and datomic.api/entid. The transact API and some advanced features are not enabled by default or are not recommended in this setup.
MIT Licence. Free for commercial & non-commercial use.
Petrus Theron
Execute a Datomic query to retrieve data from the Datomic database.
Access datoms matching a pattern or criteria, enabling detailed data retrieval.
Wrap a set of datoms in a transaction-like context to apply changes via q-with.
Fetch a structured data map for a given entity using a pull pattern.
Fetch multiple entities efficiently using a batch pull.
Resolve an entity id to its map representation with attributes.
Mark an entity as updated or refresh its database-backed state.
Resolve an entity id or keyword to a valid entity identifier.