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

recursion-mcp-v2

v1.0.2

Published

MCP server for navigation-enabled recursive document analysis - works offline with no external APIs

Readme

Recursion MCP V2

npm version License: MIT

An NPX-installable MCP (Model Context Protocol) server for navigation-enabled recursive document analysis. Works entirely offline with no external APIs required.

Features

  • No External APIs: Pure file-system based, works completely offline
  • Complete Document Analysis: No missed content like brittle RAG chunking
  • Hierarchical Navigation: Read any section, any line range
  • Persistent Analysis: Save and retrieve agent-generated insights
  • Markdown Conversion: PDF/DOCX → structured markdown
  • Recursive Reading: Agent-controlled systematic analysis

Quick Start

# Run via NPX (no install needed)
npx recursion-mcp-v2

# Or install globally
npm install -g recursion-mcp-v2

# Run V2
recursion-mcp-v2

Terminal Commands

Package Management

# Install globally
npm install -g recursion-mcp-v2

# Uninstall globally
npm uninstall -g recursion-mcp-v2

# Check if installed globally
npm list -g recursion-mcp-v2

# Check local project installation
npm list recursion-mcp-v2

# View package info (version, dependencies, etc.)
npm info recursion-mcp-v2

# View latest version available
npm view recursion-mcp-v2 version

# Update to latest version
npm update -g recursion-mcp-v2

MCP Configuration Cleanup

After uninstalling, remove the MCP server entry from your IDE config:

Windsurf: ~/.codeium/windsurf/mcp_config.json
Claude Desktop: ~/AppData/Roaming/Claude/config.json
Cursor: ~/.cursor/mcp.json

Remove the recursion-v2 entry under mcpServers.

Installation Verification

After installation, verify it's working:

# Check if package is installed
npm view recursion-mcp-v2 version

# Test V2 server
npx recursion-mcp-v2 --help
recursion-mcp-v2 --help

Manual MCP Configuration

If automatic IDE configuration doesn't work, copy this prompt for your AI assistant:

Please add the Recursion V2 MCP server to my IDE's MCP configuration file.

For Windsurf: Add this to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "recursion-v2": {
      "command": "npx",
      "args": ["recursion-mcp-v2"]
    }
  }
}

Or with absolute paths for global install:

{
  "mcpServers": {
    "recursion-v2": {
      "command": "node",
      "args": ["C:/Users/YOUR_USERNAME/AppData/Roaming/npm/node_modules/recursion-mcp-v2/dist/cli-v2.js"]
    }
  }
}

Installation

Via NPX (recommended)

npx recursion-mcp-v2

Global Install

npm install -g recursion-mcp-v2

# Run V2
recursion-mcp-v2

Automatic IDE Configuration

When you install globally, the package automatically configures MCP for detected IDEs:

| IDE | Auto-Configured | |-----|----------------| | Windsurf | ✅ Yes | | Claude Desktop | ✅ Yes | | Cursor | ✅ Yes | | VSCode | ✅ Yes (with MCP extension) |

Restart your IDE after installation to see the MCP tools.

Manual Setup (if auto-config fails)

# Run setup manually
npm run setup --prefix $(npm root -g)/recursion-mcp-v2

Or manually add to your IDE's MCP settings (see MCP Configuration section above).

Prerequisites

  • Node.js 18+ only (no other dependencies!)

MCP Configuration

V2 Configuration (Navigation)

{
  "mcpServers": {
    "recursion-v2": {
      "command": "npx",
      "args": ["recursion-mcp-v2"]
    }
  }
}

Available Tools

ingest_document_v2

Convert and store document with navigable structure.

{
  "filePath": "/path/to/document.pdf",
  "title": "Optional Title"
}

get_document_structure

Get hierarchical outline (chapters, sections, subsections).

{
  "docId": "document-id",
  "depth": 2
}

read_section

Read a specific section by ID.

{
  "docId": "document-id",
  "sectionId": "section-id",
  "maxLines": 100
}

search_document

Search for text with context lines.

{
  "docId": "document-id",
  "query": "search term",
  "contextLines": 3
}

save_analysis / get_analysis

Save and retrieve agent-generated analysis.

{
  "docId": "document-id",
  "sectionId": "full",
  "analysisType": "summary",
  "content": "Analysis text..."
}

Agent Analysis Pattern

// 1. Ingest document
const docId = await ingest_document_v2({
  filePath: "/path/to/book.pdf"
});

// 2. Get structure
const structure = await get_document_structure({ docId });

// 3. Systematic analysis
for (const chapter of structure.sections) {
  const content = await read_section({ docId, sectionId: chapter.id });
  const analysis = agentAnalyze(content);
  await save_analysis({ docId, sectionId: chapter.id, analysisType: "summary", content: analysis });
}

// 4. Synthesize complete understanding
const fullAnalysis = await get_analysis({ docId, sectionId: "full", analysisType: "complete" });

Storage

Documents are stored at ~/.kw-os/v2/documents/{doc-id}/:

  • document.md - Full markdown
  • structure.json - Hierarchical outline
  • analysis/ - Saved analyses

Architecture

  • File System Storage: Markdown + JSON structure
  • Hierarchical Navigation: Section-level granularity
  • Agent-Driven: AI controls reading, no brittle retrieval
  • Analysis Persistence: Incremental understanding building
  • Zero Dependencies: Only requires Node.js 18+

Documentation

License

MIT © netflypsb

Links