Skip to main content
Use Agno’s MCP integration with Graphiti to build a personal diary assistant that stores and recalls entries from a knowledge graph.
graphiti.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Start Graphiti MCP

Start a Graphiti MCP server at http://localhost:8000/sse. See the Graphiti MCP server instructions.
5

Run the example

Save the code above as graphiti.py, then run:
Full source: cookbook/91_tools/mcp/graphiti.py