Introduction

A Rust SDK, terminal UI, and MCP server for Roam Researcharrow-up-right.

The roam-sdk crate provides three things in one package:

  • SDK — a Rust client for the Roam Research API. Use it to build your own tools, scripts, or integrations.

  • TUI — a terminal-based interface for navigating and editing your Roam graph.

  • MCP Server — expose your Roam graph to AI assistants via the Model Context Protocol.

I want to...
Go to

Use the terminal app

Configure the app

Learn keybindings

Export notes

Select multiple blocks

Set up MCP for AI assistants

See MCP tools

Use the Rust SDK

See API reference

Architecture

roam-sdk (crate)
├── lib.rs          → SDK: RoamClient, types, queries, errors
├── main.rs         → TUI: terminal interface using the SDK
├── mcp.rs          → MCP: stdio server with 18 tools
└── export.rs       → Export: markdown and JSON formatters

The TUI is built on Ratatuiarrow-up-right + Tokioarrow-up-right and uses the SDK internally. The MCP server uses rmcparrow-up-right for the Model Context Protocol implementation. Both ship from the same crate — install the binary with cargo install roam-sdk, or add the library with cargo add roam-sdk.

Last updated

Was this helpful?