Pomentumgraphos

An AI agent reads the graph

An AI agent should answer questions from the graph, read only what its person may read, and leave a record of every call.

AI and platform teams6 stepsTested

Step through it, animated →

The situation

For a team whose agents need connected data: dependencies, owners, a knowledge graph, an agent's own memory. Without an MCP endpoint, an agent needs custom code against the REST API, and graph databases' own MCP servers offer no per-tenant grants or an audit that names the person.

Step by step

  1. Problem 1. Custom code for every agent

    The agent reaches the graph through code written for it, with credentials of its own and nothing that ties what it reads to the person it acts for.

    What the agent may read: whatever its code can · Writes: — · In the audit log: —

  2. With graphos 2. The same tokens as the API

    graphos serves /mcp on the API's own port, on by default. Whatever a token may read through /v1, it may read through /mcp, and no more.

    A service account with a read grant signs in as any service does. A person's MCP client signs them in by itself: graphos acts as the OAuth server (PKCE, loopback callbacks only), or the client brings a token from your single sign-on.

    What the agent may read: what its token may read through /v1

  3. How it works 3. 22 read tools

    The agent sees graphos's reads as tools: list_tenants, get_schema, search_nodes, get_neighbors, shortest_paths, recent_changes, run_saved_query and more. run_cypher is there only where the Cypher console is on.

    A result over 64 KiB is cut, and the answer says so.

  4. How it works 4. A schema written for models

    get_schema gives a summary meant for a model: the labels with their counts and properties, the values themselves where there are at most 20, which labels connect, the search indexes and the saved queries.

    The server's instructions tell the agent to run a saved query first when one answers the question.

  5. With graphos 5. No tool writes

    No tool writes, and Cypher reads only. A token graphos issues to a person's MCP client reads only, at the read level of that person's tenants.

    graphos's guide adds a warning worth keeping: what the graph holds is untrusted input to the model.

    Writes: none: no tool writes

  6. How it works 6. Every call on the record

    Every tool call is in the audit log, whatever the setting for logging reads, naming the account or the person that made it.

    In the audit log: every call

What graphos does here

MCP endpoint
22 read tools, a schema summary and resources for models.
Users, grants and sign-on
The same tokens and grants as the API.
Audit log
Every tool call, named.
Tenant
Only the tenants the token is granted.

What shows it: Tested

Tested: graphos's tests check that every tool is a read with a fixed description, that the token that opens the API opens /mcp and nothing else does, and that an agent reads a granted tenant with every call audited; sign-on through Keycloak 26 was tried with the MCP Python SDK's client. No example script and no benchmark. The question and the saved query drawn are examples.

In graphos's latest release and covered by graphos's automated tests; no result is measured for it here.

See it in graphosThe Query page (where the Cypher console is on): Cypher coloured and suggested as you type, a saved query's form, the result with each node's label icon.
The Query page of the demo tenant: a saved query's Cypher, coloured, its parameter as a field, the result as a table with each node shown with its label's icon, and the tenant's saved queries beside it.

Try it

The agents guide says where /mcp is, how to get a token, how to configure a client, and lists every tool.

Read the agents guide

Related use cases