Documentary MCP Server
Enables creating, listing, and searching project-based documentation with Markdown content, table of contents, full-text search, and multi-client support via Streamable HTTP transport.
README
Documentary MCP Server
NestJS + PostgreSQL + @rekog/mcp-nest ile proje bazli dokumantasyon olusturan ve listeleyen MCP sunucusu.
Ozellikler
- Proje bazli dokumanlar: Her dokuman bir
projectNameile gruplanir; backend/frontend gibi farkli agentlar kendi projelerinde calisir. - Dokuman olusturma: Markdown icerik, otomatik icindekiler (table of contents) ve slug.
- Arama: Full-text search (dogal dil) ve regex ile icerik arama.
- Minimal token kullanimi:
get_documenttool'undasectionIdile tek bir bolum okunabilir. - Multi-client destek: Streamable HTTP transport ile birden fazla agent ayni anda baglanabilir.
Gereksinimler
- Node.js 18+
- PostgreSQL 14+
Kurulum
yarn install
cp .env.example .env
# .env icinde DB_* degerlerini duzenleyin
yarn start:dev
- Uygulama:
http://localhost:3000 - MCP endpoint:
http://localhost:3000/mcp
MCP Araclari (Tools)
| Tool | Aciklama |
|---|---|
list_projects |
Tum projeleri listeler (proje adi + dokuman sayisi). Ilk adim olarak kullanin. |
create_document |
Belirtilen projede dokuman olusturur. Icerik Markdown; #, ## ile basliklar TOC'e eklenir. |
list_documents |
Bir projedeki dokumanlari listeler (id, title, slug, TOC, tarihler). |
search_documents |
Proje icinde full-text veya regex arama. Snippet doner. |
get_document |
Proje+slug veya id ile tam dokuman icerigi + TOC. sectionId ile tek bolum okunabilir. |
get_document_toc |
Sadece icindekiler; bolum bazli okumak icin get_document ile sectionId kullanilir. |
MCP Resource Template
- URI:
mcp://documents/{projectName}/{slug} - Tam dokuman: TOC + tum icerik.
Ornek: Backend agent dokumani yazar -> Frontend agent list_projects -> list_documents -> get_document_toc -> get_document ile sectionId vererek sadece ilgili bolumu okur.
Ornek kullanim (agent senaryolari)
- Backend agent:
create_documentileprojectName: "backend-api", baslik ve detayli Markdown icerik gonderir. - Frontend agent:
list_projects->search_documents(projectName: "backend-api", query: "login") ->get_document_toc->get_documentilesectionId: "login"vererek sadece ilgili bolumu okur.
Ortam degiskenleri
| Degisken | Varsayilan | Aciklama |
|---|---|---|
PORT |
3000 | HTTP portu |
DB_HOST |
localhost | PostgreSQL host |
DB_PORT |
5432 | PostgreSQL port |
DB_USER |
postgres | Kullanici |
DB_PASSWORD |
postgres | Sifre |
DB_NAME |
documentary_mcp | Veritabani adi |
DB_LOGGING |
false | SQL loglama |
MCP_API_KEY |
(bos) | Tanimliysa MCP endpoint'i API_KEY veya Authorization: Bearer header ile korunur |
Docker ile calistirma
Sunucuyu bilgisayarinizda surekli calisir halde tutmak icin Docker Compose kullanin:
cp .env.example .env
# Istege bagli: MCP_API_KEY=your-secret-key
docker compose up -d --build
- Uygulama:
http://localhost:3000 - MCP:
http://localhost:3000/mcp - Veritabani verisi
postgres_datavolume'da kalir.
Durdurmak: docker compose down
Cursor MCP ayari
Remote Server (HTTP - onerilen)
Sunucu Docker veya yarn start:dev ile calisiyorken Cursor'da Remote Server olarak ekleyin. ~/.cursor/mcp.json:
{
"mcpServers": {
"documentary": {
"url": "http://localhost:3027/mcp"
}
}
}
MCP_API_KEY kullaniyorsaniz headers ekleyin:
{
"mcpServers": {
"documentary": {
"url": "http://localhost:3027/mcp",
"headers": {
"API_KEY": "your-secret-key"
}
}
}
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.