
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@pieeee/docmcp
Advanced tools
Index documentation websites and search them from AI coding assistants via MCP
Index any documentation website and search it from AI coding assistants via the Model Context Protocol (MCP).
npm install -g @pieeee/docmcp
# Initial setup
docmcp init
# Index a documentation site
docmcp add https://tailwindcss.com/docs
# List indexed docs
docmcp list
claude mcp add docmcp -- docmcp serve
Or add to your project's .mcp.json:
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}
| Command | Description |
|---|---|
docmcp init | Setup wizard - configure embedding provider and data directory |
docmcp add <url> | Crawl and index a documentation site |
docmcp list | Show all indexed documentation |
docmcp remove <name> | Remove indexed documentation |
docmcp serve | Start MCP server (stdio transport) |
docmcp add <url> [options]
Options:
-n, --name <name> Override auto-detected doc name
-d, --depth <number> Max crawl depth (default: 10)
-m, --max-pages <number> Max pages to crawl (default: unlimited)
-i, --include <pattern...> Only crawl URLs matching pattern (glob)
-e, --exclude <pattern...> Skip URLs matching pattern (glob)
--delay <ms> Delay between requests (default: 200)
--concurrency <number> Parallel requests (default: 3)
--no-sitemap Skip sitemap, force recursive crawl
--openapi Treat URL as OpenAPI/Swagger JSON spec
You can index OpenAPI specs directly:
docmcp add https://api.example.com/openapi.json --openapi
docmcp add https://petstore.swagger.io/v2/swagger.json --openapi
This parses the spec and indexes all endpoints, parameters, and schemas for search.
When connected as an MCP server, DocMCP exposes these tools:
| Tool | Description |
|---|---|
search_docs | Search indexed documentation with hybrid BM25 + vector search |
list_docs | List all indexed documentation sources |
Search your indexed documentation:
search_docs(query: "how to center a div", doc?: "Tailwind", limit?: 5)
Parameters:
query (required): Search querydoc (optional): Filter to specific documentationlimit (optional): Max results (default: 5)| Provider | API Key Required | Notes |
|---|---|---|
anthropic | ANTHROPIC_API_KEY | Uses Voyage AI embeddings (recommended) |
openai | OPENAI_API_KEY | Uses text-embedding-3-small |
bm25only | None | Keyword search only, zero setup |
Set your API key as an environment variable or enter it during docmcp init.
All data is stored in ~/.docmcp/:
~/.docmcp/
├── config.json # Configuration (API keys stored here)
└── db/
└── docs.db # SQLite database with FTS5 + vector search
| Platform | Status | Notes |
|---|---|---|
| macOS (Intel) | Full | |
| macOS (Apple Silicon) | Full | |
| Linux (x64) | Full | |
| Linux (ARM64) | Full | |
| Windows (x64) | Full | May require build tools for native modules |
If installation fails on Windows due to native module compilation:
npm install --global windows-build-toolsnpm install -g docmcpSee CONTRIBUTING.md for development setup and guidelines.
MIT - see LICENSE for details.
FAQs
Index documentation websites and search them from AI coding assistants via MCP
The npm package @pieeee/docmcp receives a total of 20 weekly downloads. As such, @pieeee/docmcp popularity was classified as not popular.
We found that @pieeee/docmcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.