@qxinm/docmate-mcp
v0.2.0
Published
MCP server for DocMate — AI-powered document management
Readme
@qxinm/docmate-mcp
MCP (Model Context Protocol) server for DocMate — AI-powered document management.
Published package:
@qxinm/docmate-mcp
Exposes four tools to AI agents:
| Tool | Description |
|------|-------------|
| upload_document | Upload a local PDF and convert it to Markdown |
| list_documents | List all uploaded documents |
| get_parse_job_status | Check whether an async parse job is still running, succeeded, or failed |
| get_document_result | Retrieve the full parsed Markdown of a document |
Quick Start
Option 1: Install via Skills CLI (Recommended)
DocMate agent skills live in the monorepo root skills/. Install them with:
npx skills add 2026-Capstone1-Team5/docmateThis downloads the DocMate skills and configures them for your detected agents (Claude Code, Gemini CLI, Codex, Cursor, and 40+ more).
Then run setup to register the MCP server and provide your API key:
npm install -g @qxinm/docmate-mcp
docmate-mcp setupOption 2: Install via npm
npm install -g @qxinm/docmate-mcp
docmate-mcp setupThe 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.
Verify the connection
Launch your agent and run:
/mcpYou should see docmate listed with upload_document, list_documents, get_parse_job_status, and get_document_result.
Setup options
# Install for a specific agent only
docmate-mcp setup --agent claude
docmate-mcp setup --agent gemini
docmate-mcp setup --agent codex
# Install for multiple agents
docmate-mcp setup --agent claude --agent gemini
# Install into a specific project directory instead of HOME
docmate-mcp setup --target ./my-project
# Show help
docmate-mcp setup --helpInstalled 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/ | registered via codex mcp add or ~/.codex/config.toml |
Agent detection is automatic — setup checks which CLIs are available on your PATH.
If none are detected, pass --agent <name> explicitly.
When --target <path> is used, skills and agent config files are written under that directory instead of HOME.
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"docmate": {
"command": "docmate-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 docmate-mcp setup)
If you prefer to configure manually, create a .mcp.json in your project root:
{
"mcpServers": {
"docmate": {
"command": "docmate-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 @qxinm/docmate-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 \
-- docmate-mcpFor Codex:
npm install -g @qxinm/docmate-mcp
codex mcp add docmate \
--env DOCMATE_API_KEY=your-api-key-here \
--env DOCUMENT_AGENT_API_BASE_URL=http://127.0.0.1:8000 \
-- docmate-mcpLocal Development
git clone https://github.com/2026-Capstone1-Team5/docmate
cd docmate/apps/mcp
pnpm install
pnpm run build:local
# Run directly
node dist/index.js
# Run setup directly from the repo
node dist/index.js setupCopy .env.example to .env and fill in your values for local dev:
cp .env.example .envDOCMATE_API_KEY=<YOUR_API_KEY>
DOCUMENT_AGENT_API_BASE_URL=http://127.0.0.1:8000npm Release
GitHub Actions workflows live at the repository root (.github/workflows/); only those paths are loaded.
.github/workflows/mcp-ci.yml— on changes underapps/mcp, runspnpm build(tsc) andnpm pack(prepacksyncsskills/before packing)..github/workflows/mcp-publish.yml— publishes onv*ormcp/v*tag pushes, or via manualworkflow_dispatch(you must enter confirm_version exactly matchingpackage.json; tag pushes still require the tag to match that version).
Pick one tag pattern per release (v* or mcp/v*) when possible so you do not trigger two runs for the same semver.
Repository secret required:
NPM_TOKEN
The token must have publish permission for the @qxinm scope.
Tag-based release example:
git tag mcp/v0.2.0
git push origin mcp/v0.2.0