Turn any GitHub docs folder into a searchable MCP tool for your AI agents.
1{2 "mcpServers": {3 "librarian": {4 "type": "http",5 "url": "https://your-server.com/mcp/"6 }7 }8}
Give us a GitHub docs folder URL. We fetch all markdown files automatically.
Files are chunked by section, embedded with OpenAI, and stored in PostgreSQL with pgvector.
Any MCP-compatible agent can semantically search the docs via a single HTTP endpoint.
Vector similarity search over docs using OpenAI embeddings and pgvector.
Index multiple projects, search them independently. One server, all your docs.
Only re-embeds changed files on re-sync. Saves time and API costs.
Code blocks are extracted as separate searchable chunks for better example discovery.
Standard Model Context Protocol. Works with Claude Code, Cursor, and any MCP client.
Every result includes a relevance percentage so agents know how confident the match is.
# Clone the repo git clone https://github.com/your-org/librarian-mcp.git cd librarian-mcp # Configure environment cp .env.example .env # Edit .env with your OpenAI key # Start everything docker compose up -d
{
"mcpServers": {
"librarian": {
"type": "http",
"url": "http://localhost:8000/mcp/"
}
}
}