npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@roam-research/roam-mcp

v0.11.0

Published

Official MCP server for Roam Research — connect Claude and other AI assistants to your graph

Readme

@roam-research/roam-mcp

The official Model Context Protocol (MCP) server for Roam Research.

Connect Claude, Cursor, and other AI assistants to your Roam graph for reading, writing, and searching.

Alpha Software: This project is in early development and subject to breaking changes.

[!CAUTION] Full Write Access: This MCP server gives Claude full read and write access to your Roam graph. Claude can create, modify, and delete pages and blocks. Changes may be difficult or impossible to undo. Roam does not have a traditional undo history that can reverse bulk operations or deletions made through the API.

Recommendations:

  • Back up your graph before use
  • Start with a test graph to understand Claude's behavior
  • Review what Claude plans to do before confirming write operations
  • Be specific in your instructions to avoid unintended changes

Prerequisites

  • Node.js v18 or later
  • Roam Research desktop app (the local API is not available in the web version)

Setup

1. Connect a graph

npx @roam-research/roam-mcp connect

This walks you through selecting a graph, choosing permissions, and approving the token in the Roam desktop app.

Non-interactive (for scripts and LLM agents):

npx @roam-research/roam-mcp connect --graph my-graph-name --nickname "My Team Graph" --access-level full

| Flag | Default | Description | | ------------------------ | ----------------------- | -------------------------------------------- | | --graph <name> | — | Graph name (enables non-interactive mode) | | --nickname <name> | Required with --graph | Short name you'll use to refer to this graph | | --access-level <level> | full | full, read-append, or read-only | | --public | — | Public graph (read-only, hosted) | | --type <type> | hosted | hosted or offline |

--access-level asks Roam for a permission tier; Roam decides what to actually grant and the result is recorded in ~/.roam-tools.json. The MCP server does not enforce it — editing that value by hand does not change what an agent can do.

To remove a connection:

npx @roam-research/roam-mcp connect --remove --graph my-graph-name

2. Add to your MCP client

Claude Desktop — add to your config file:

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

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Restart Claude Desktop after saving.

Claude Code:

claude mcp add -s user roam-mcp -- npx -y @roam-research/roam-mcp

This makes Roam available in all your Claude Code sessions. To add it to a single project only, use -s local instead.

Multiple Graphs

Run connect multiple times to add additional graphs. Each graph gets a nickname (a short name like "work" or "team acme") for easy selection.

  • Single graph configured: Auto-selected, no action needed
  • Multiple graphs configured: Pass the graph parameter on each tool call with the nickname

Available Tools

Graph Management:

  • list_graphs - List all configured graphs with their nicknames
  • setup_new_graph - Set up a new graph connection, or list available graphs

Graph Guidelines:

  • get_graph_guidelines - Returns user-defined instructions and preferences for AI agents

Graph guidelines let you store preferences and context directly in your Roam graph that AI agents will follow. Create a page called [[roam/agent guidelines]] with your instructions.

Content:

  • create_page - Create page with markdown content
  • update_page - Update page title or children view type
  • delete_page - Delete a page (errors with NOT_FOUND when nothing exists to delete; older Roam servers may instead report success without deleting)
  • create_block - Create blocks (by parent UID, page title, or daily note date — MM-DD-YYYY or today/yesterday/tomorrow; with optional nest-under)
  • append_to_daily_note - Append/capture markdown to a daily note (today by default, or MM-DD-YYYY / today/yesterday/tomorrow; optional nest-under section)
  • update_block - Update block content/properties
  • move_block - Move a block to a new location
  • delete_block - Delete a block (errors with NOT_FOUND when nothing exists to delete; older Roam servers may instead report success without deleting)
  • add_comment - Add a comment to a block (comment thread, not child block)
  • get_comments - Get comments on a block with author/date context

Read:

  • search - Search pages/blocks (empty query returns recently edited/viewed content)
  • semantic_search - Semantic (embeddings) search by meaning; requires embeddings enabled and a signed-in user
  • suggest_links - Suggest existing pages worth linking to from a passage of text (does not create links)
  • search_templates - Search Roam templates by name
  • roam_query - Execute a Roam query ({{query:}} blocks, not Datalog)
  • datalog_query - Execute a raw Datalog query against the graph's Datomic database
  • get_page - Get page content as markdown
  • get_block - Get block content as markdown
  • get_backlinks - Get references to a page/block

Navigation:

  • get_open_windows - Main window view and all sidebar windows
  • get_selection - Currently focused block and multi-selected blocks
  • open_main_window - Navigate to page/block
  • open_sidebar - Open in right sidebar

Shortcuts:

  • add_shortcut - Add a page to the left sidebar Shortcuts / starred pages (optional index to position it)
  • remove_shortcut - Remove a page from the left sidebar Shortcuts / starred pages

Files:

  • file_get - Fetch a file hosted on Roam (handles decryption for encrypted graphs)
  • file_upload - Upload a file to Roam (from local path, URL, or base64)
  • file_delete - Delete a file hosted on Roam

Developer:

  • reload_dev_extensions - Reload all developer-mode extensions in Roam Desktop (apply code changes without restarting)
  • call_extension_tool - Invoke an AI tool registered by a Roam extension or roam/js script (discover available tools via the extensionTools field of get_graph_guidelines)

Hiding content from the AI

Blocks tagged #.rm-hide or #.rm-private — and everything nested under them — are omitted from the content these tools return. The read tools that surface graph content to the AI (get_page, get_block, get_backlinks, search, semantic_search, roam_query) all skip hidden subtrees. (search_templates is the exception: template previews are NOT filtered, so hidden blocks inside a shared template can appear in its results.) Both the hashtag (#.rm-hide) and link ([[.rm-hide]]) forms work; .rm-private is Roam's existing "hidden from other users" tag, while .rm-hide hides from the AI specifically.

This is a convenience filter, not a security guarantee. The filtering is applied only to the AI content tools above. The raw datalog_query tool reads the database directly and does not apply it, so a capable agent could still surface hidden blocks through datalog. Don't rely on these tags for anything truly sensitive — treat them as "keep it out of the AI's way," not "keep it secret."

Updating

When using npx, you always get the latest version. To force a refresh if npx caches a stale version:

npx clear-npx-cache

Documentation

See the main repository for development setup, contributing guidelines, and architecture details. The repo also ships a roam-syntax Agent Skill that teaches agents Roam-flavored markdown and safe read/write patterns — copy it into your agent's skills directory (e.g. .claude/skills/) for platforms that support skills.