DocMesh MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DocMesh MCPsearch AlphaDB docs for connect() retry behavior"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DocMesh MCP
DocMesh indexes multiple public documentation sites into PostgreSQL and exposes cited passages through one MCP server. It is retrieval-only: it does not answer the technical question or mutate sources through MCP.
Architecture
The ingestion plane validates and DNS-pins public URLs, discovers pages from sitemaps or same-origin links, extracts article Markdown, chunks by headings, embeds changed chunks, and updates each document transactionally. The query plane routes a query to up to three sources, runs exact-symbol, PostgreSQL full-text, and pgvector searches, then combines ranks with reciprocal-rank fusion. See ARCHITECTURE.md.
Related MCP server: Atlas
Prerequisites and setup
Node.js 22+ (Node 24 LTS works)
pnpm 10+
Docker, or PostgreSQL 17 with pgvector
pnpm install
cp .env.example .env
docker compose up -d
pnpm migrateThe checked-in migration uses vector(1536), matching .env.example. To change embedding dimensions safely, create a migration that rebuilds the vector column and HNSW index, set EMBEDDING_DIMENSION, then re-ingest all documents. Do not change only the environment variable.
Sources, ingestion, and search
pnpm cli source add --name AlphaDB --url https://docs.example.com --aliases alpha --tags database
pnpm cli source version:add --source alpha-db --version 2.0 --url https://docs.example.com/v2 --default
pnpm cli source list
pnpm cli ingest --source alpha-db
pnpm cli search --query "How does AlphaClient.connect() retry?"For checked-in fixtures, no localhost crawl bypass is provided. They are loaded directly from trusted repository files:
pnpm fixtures:ingest
ALLOW_DEBUG=true pnpm cli search --query "Compare AlphaDB and BetaORM transactions" --debug
pnpm evalMCP
Local stdio configuration:
{
"mcpServers": {
"docmesh": {
"command": "pnpm",
"args": ["--dir", "/absolute/path/to/docmesh-mcp", "mcp:stdio"],
"env": { "DATABASE_URL": "postgres://docmesh:docmesh@localhost:5432/docmesh" }
}
}
}Remote Streamable HTTP:
pnpm mcp:http
# endpoint: http://127.0.0.1:3000/mcpThe public surface is deliberately small: list_sources, search_docs, get_document, and docs://{sourceId}/{version}/{documentId} resources. Ingestion and arbitrary fetching are CLI-only.
Configuration
.env.example documents all variables. Core groups are database connection, embedding provider/model/dimension, optional OpenAI router and timeout, crawler limits, HTTP port, Playwright fallback, logging, and development debug output. Without an API key, fake deterministic embeddings and deterministic routing keep local tests credential-free. For useful production semantic retrieval, select the OpenAI embedding provider and re-ingest.
Playwright is installed as an optional package but browser binaries are not downloaded automatically. If rendering is enabled, run pnpm exec playwright install chromium explicitly.
Checks
pnpm format:check
pnpm lint
pnpm typecheck
pnpm testDatabase integration tests are enabled with TEST_DATABASE_URL:
TEST_DATABASE_URL=postgres://docmesh:docmesh@localhost:5432/docmesh pnpm testSecurity
Crawling arbitrary URLs is dangerous. DocMesh permits only HTTP(S), rejects credentials and private/loopback/link-local/multicast/reserved/metadata addresses, pins validated DNS answers for each request, revalidates every redirect, limits redirects/time/bytes/pages/depth, accepts textual content types, and restricts recursive links to configured origins and path prefixes. Playwright validates every browser request but browser-level DNS pinning depends on Chromium; keep it disabled for untrusted sources unless the deployment also enforces outbound network policy.
Known limitations
HTML heuristics cover common documentation layouts, not every JavaScript framework.
HTTP validators are stored, but conditional
If-None-Match/If-Modified-Sincerequests are not yet issued; normalized hashes still prevent re-embedding unchanged content.Sequential fetching deliberately favors politeness and simplicity over large-crawl throughput.
The router cache is process-local only through provider/client behavior; a durable routing cache is not included in the MVP.
Remote deployment needs authentication, TLS, rate limiting, and network egress controls in front of the MCP endpoint.
Highest-value next improvements: conditional HTTP recrawls, a bounded concurrent crawl worker pool, and retrieval evaluation on a larger real documentation corpus.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceIndexes documentation sites by base URL and serves keyword search, optional semantic search, and Markdown page retrieval as MCP tools, all from a single SQLite file.
- Alicense-qualityAmaintenanceLocal-first MCP server for querying multi-repo engineering documentation artifacts from a SQLite corpus.391AGPL 3.0
- AlicenseAqualityAmaintenanceMCP server that indexes Markdown, Word, HTML, and PDF documents into a SQLite knowledge graph with CJK+Latin full-text search and cross-document reference tracking. Runs drift audits to surface stale policies, conflicting research claims, superseded ADRs, and undocumented code exports.105MIT
- Alicense-qualityBmaintenanceSelf-hosted documentation and code indexing with MCP integration.17MIT
Related MCP Connectors
Query any docs site via MCP. Submit a URL, ask questions, get cited answers.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arrowh3ad/docmesh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server