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

document-agent-mcp

v0.1.5

Published

MCP server for DocMate — AI-powered document management

Readme

document-agent-mcp

MCP (Model Context Protocol) server for DocMate — AI-powered document management.

Exposes three tools to AI agents:

| Tool | Description | |------|-------------| | upload_document | Upload a local PDF and convert it to Markdown | | list_documents | List all uploaded documents | | get_document_result | Retrieve the full parsed Markdown of a document |


Quick Start

1. Get a DocMate API key

  1. Make sure the DocMate backend is running.
  2. Register at http://localhost:3000/register (or via the API).
  3. Go to API Keys in the dashboard and create a new key. Copy it.

2. Install and run setup

npm install -g document-agent-mcp
document-agent-mcp setup

The setup command will:

  • Prompt for your API key and backend URL
  • Auto-detect installed agents (Claude Code, Gemini CLI, Codex)
  • Register the MCP server with your agent automatically
  • Install DocMate skills (slash commands)

Works on Windows, macOS, and Linux.

3. Verify the connection

Launch your agent and run:

/mcp

You should see docmate listed with upload_document, list_documents, and get_document_result.


Setup options

# Install for a specific agent only
document-agent-mcp setup --agent claude
document-agent-mcp setup --agent gemini
document-agent-mcp setup --agent codex

# Install for multiple agents
document-agent-mcp setup --agent claude --agent gemini

# Install into a specific project directory instead of HOME
document-agent-mcp setup --target ./my-project

# Show help
document-agent-mcp setup --help

Installed locations

| Agent | Skills path | MCP config | |-------|-------------|------------| | Claude Code | ~/.claude/skills/ | registered via claude mcp add --scope user | | Gemini CLI | ~/.gemini/skills/ | ~/.gemini/.mcp.json | | OpenAI Codex | ~/.codex/skills/ | ~/.codex/.mcp.json |

Agent detection is automatic — setup checks which CLIs are available on your PATH. If none are detected, pass --agent <name> explicitly.


Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "docmate": {
      "command": "document-agent-mcp",
      "env": {
        "DOCMATE_API_KEY": "your-api-key-here",
        "DOCUMENT_AGENT_API_BASE_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

Config file location:

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

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | DOCMATE_API_KEY | Yes | — | DocMate API key for authentication | | DOCUMENT_AGENT_API_BASE_URL | No | http://127.0.0.1:8000 | DocMate backend URL |


Manual MCP setup (without skills.sh)

If you prefer to configure manually, create a .mcp.json in your project root:

{
  "mcpServers": {
    "docmate": {
      "command": "document-agent-mcp",
      "env": {
        "DOCMATE_API_KEY": "your-api-key-here",
        "DOCUMENT_AGENT_API_BASE_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

Or register globally via CLI:

npm install -g document-agent-mcp
claude mcp add --scope user docmate \
  -e DOCMATE_API_KEY=your-api-key-here \
  -e DOCUMENT_AGENT_API_BASE_URL=http://127.0.0.1:8000 \
  -- document-agent-mcp

Local Development

git clone https://github.com/2026-Capstone1-Team5/document-agent-mcp
cd document-agent-mcp
pnpm install
pnpm build

# Run directly
node dist/index.js

Copy .env.example to .env and fill in your values for local dev:

cp .env.example .env
DOCMATE_API_KEY=<YOUR_API_KEY>
DOCUMENT_AGENT_API_BASE_URL=http://127.0.0.1:8000