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.
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
-
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: —
-
With graphos 2. The same tokens as the API
graphos serves
/mcpon 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
-
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_queryand more.run_cypheris there only where the Cypher console is on.A result over 64 KiB is cut, and the answer says so.
-
How it works 4. A schema written for models
get_schemagives 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.
-
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
-
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.

Try it
The agents guide says where /mcp is, how to get a token, how to configure a client, and lists every tool.
Related use cases
- One graph, many services · Several services need the same connected data, and none of them should hold the database.
- Communities and key nodes, re-run cheaply · Find the graph's central nodes and its communities, and keep them current without rewriting the whole graph each time.
- Explore a software ecosystem · Hundreds of packages, people and teams, and you want to see which packages matter and how they group.