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

ra-h-mcp-server

v1.7.0

Published

Connect Claude Code/Desktop to your RA-H knowledge base. Direct SQLite access - no web app required.

Readme

RA-H MCP Server

Connect Claude Code and Claude Desktop to your RA-H knowledge base. Direct SQLite access - works without the RA-H app running.

Install

npx ra-h-mcp-server

That's it. No manual setup required.

Configure Claude Code / Claude Desktop

Add to your Claude config (~/.claude.json or Claude Desktop settings):

{
  "mcpServers": {
    "ra-h": {
      "command": "npx",
      "args": ["ra-h-mcp-server"]
    }
  }
}

Restart Claude. Done.

Requirements

  • Node.js 18+
  • Database is created automatically at ~/Library/Application Support/RA-H/db/rah.sqlite on first connection

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | RAH_DB_PATH | ~/Library/Application Support/RA-H/db/rah.sqlite | Database path |

What to Expect

Once connected, Claude will:

  • Call rah_get_context first to orient itself (stats, hub nodes, dimensions, guides)
  • Proactively capture knowledge — when a new insight, decision, person, or reference surfaces, it proposes a specific node (title, dimensions, description) so you can approve with minimal friction
  • Read guides for complex tasks — system guides (immutable) teach it how your graph works; custom guides teach it your workflows
  • Search before creating to avoid duplicates

Available Tools

| Tool | Description | |------|-------------| | rah_get_context | Get graph overview — stats, hub nodes, dimensions, recent activity | | rah_add_node | Create a new node | | rah_search_nodes | Search nodes by keyword | | rah_get_nodes | Load nodes by ID (includes chunk + metadata) | | rah_update_node | Update an existing node | | rah_create_edge | Create connection between nodes | | rah_update_edge | Update an edge explanation | | rah_query_edges | Find edges for a node | | rah_list_dimensions | List all dimensions | | rah_create_dimension | Create a dimension | | rah_update_dimension | Update/rename a dimension | | rah_delete_dimension | Delete a dimension | | rah_list_guides | List available guides (system + custom) | | rah_read_guide | Read a guide by name | | rah_write_guide | Create or update a custom guide | | rah_delete_guide | Delete a custom guide | | rah_search_content | Search through source content (transcripts, books, articles) | | rah_sqlite_query | Execute read-only SQL queries (SELECT/WITH/PRAGMA) |

Guides

Guides are detailed instruction sets that teach Claude how to work with your knowledge base. System guides (schema, creating-nodes, edges, dimensions, extract) are bundled and immutable. You can create up to 10 custom guides for your own workflows.

Guides are stored at ~/Library/Application Support/RA-H/guides/ and shared with the main app.

What's NOT Included

This is a lightweight CRUD server. Advanced features are handled by the main app:

  • Embedding generation
  • AI-powered edge inference
  • Content extraction (URL, YouTube, PDF)
  • Real-time SSE events

Testing

# Test database connection
node -e "const {initDatabase,query}=require('./services/sqlite-client');initDatabase();console.log(query('SELECT COUNT(*) as c FROM nodes')[0].c,'nodes')"

# Run the server
node index.js