This server bridges AI assistants like Claude with your Roam Research database, allowing seamless interaction with your Roam graph through natural language. You can create new content, search existing information, store memories, and process external content from websites, PDFs, and YouTube videos without any coding.
Locate your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonEdit the configuration file to add the MCP server:
{
"mcpServers": {
"roam-helper": {
"command": "uvx",
"args": ["git+https://github.com/PhiloSolares/roam-mcp.git"],
"env": {
"ROAM_API_TOKEN": "<your_roam_api_token>",
"ROAM_GRAPH_NAME": "<your_roam_graph_name>"
}
}
}
}
Obtain your Roam API token:
Replace the placeholders in the configuration:
<your_roam_api_token> with your actual API token<your_roam_graph_name> with your Roam graph nameYou can also run the server inside a Docker container:
docker build -t roam-mcp .
docker run -p 3000:3000 \
-e ROAM_API_TOKEN="your_api_token" \
-e ROAM_GRAPH_NAME="your_graph_name" \
roam-mcp
{
"mcpServers": {
"roam-helper": {
"command": "docker",
"args": ["run", "--rm", "-p", "3000:3000",
"-e", "ROAM_API_TOKEN=your_token",
"-e", "ROAM_GRAPH_NAME=your_graph",
"roam-mcp"],
"env": {}
}
}
}
Once configured, you can start using Claude to interact with your Roam graph through natural language commands.
You can ask Claude to create new pages and content in your Roam graph:
Search for specific content with filtering options:
The MCP server includes a memory system to store information across conversations:
Import and process content from external sources:
By default, the memory system stores memories with the tag #[[Memories]]. You can customize this:
"env": {
"ROAM_API_TOKEN": "your-token",
"ROAM_GRAPH_NAME": "your-graph",
"MEMORIES_TAG": "#[[Claude/Memories]]"
}
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "roam-helper" '{"command":"uvx","args":["git+https://github.com/PhiloSolares/roam-mcp.git"],"env":{"ROAM_API_TOKEN":"<your_roam_api_token>","ROAM_GRAPH_NAME":"<your_roam_graph_name>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"roam-helper": {
"command": "uvx",
"args": [
"git+https://github.com/PhiloSolares/roam-mcp.git"
],
"env": {
"ROAM_API_TOKEN": "<your_roam_api_token>",
"ROAM_GRAPH_NAME": "<your_roam_graph_name>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"roam-helper": {
"command": "uvx",
"args": [
"git+https://github.com/PhiloSolares/roam-mcp.git"
],
"env": {
"ROAM_API_TOKEN": "<your_roam_api_token>",
"ROAM_GRAPH_NAME": "<your_roam_graph_name>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect