drio
Open app

Roam Research MCP Server

Source

MCP Server for Roam Research Graph Integration

Catalog onlyCatalog onlySTDIO

Overview

Roam Research MCP Server is a Model Context Protocol (MCP) server designed to provide deep access to Roam Research's API, allowing AI systems to effectively interact with your Roam Research graph via a standardized interface.

To use the Roam Research MCP Server, install the package globally or clone the repository for a local build. After setting up your Roam API token and required environment variables, you can utilize various MCP tools to interact with your Roam Research content.

  • Fetch pages by title with resolved block references - Create new pages and blocks - Import nested markdown content into specific blocks - Add todo items efficiently using Roam's checkbox syntax - Comprehensive error handling and input validation
  1. Automating content creation in your Roam graph
  2. Fetching and analyzing page contents programmatically
  3. Integrating Roam Research with AI systems for content management

Add to your AI client

Use these steps to connect Roam Research MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "roam-research-mcp-2b3pro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "roam-research-mcp-2b3pro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "roam-research-mcp-2b3pro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "roam-research-mcp-2b3pro": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "roam-research-mcp-2b3pro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "roam-research-mcp-2b3pro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-roam-research-mcp-2b3pro"
      ]
    }
  }
}

FAQ

What is an MCP server?

An MCP server allows AI models to communicate with applications like Roam Research in a structured manner, enhancing functionality and usability.

How do I set up my Roam API token?

You can create an API token in the settings of your Roam Research graph under the "API tokens" section.

Is Roam Research MCP Server open-source?

Yes! It is open-source and available under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":765,"uuid":"6dfe2a2a-699a-4c8b-b64d-c4f62df40639","name":"roam-research-mcp","title":"Roam Research MCP Server","description":"MCP Server for Roam Research Graph Integration","avatar_url":"https://avatars.githubusercontent.com/u/916765?v=4","created_at":"2024-12-30T03:30:47.926Z","updated_at":"2025-01-05T02:54:39.287Z","status":"created","author_name":"2b3pro","author_avatar_url":"https://avatars.githubusercontent.com/u/916765?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/2b3pro/roam-research-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/13aab2561cefa19495ea4d215d3c456ba1a30e1ef1588fdf85185c9353766e01/68747470733a2f2f62616467652e667572792e696f2f6a732f726f616d2d72657365617263682d6d63702e737667","type":null,"metadata":"{\"star\":\"38\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-30 17:08:35\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]