{"id":35399995,"url":"https://github.com/pankaj28843/docs-mcp-server","last_synced_at":"2026-01-28T21:38:16.330Z","repository":{"id":331330019,"uuid":"1125743132","full_name":"pankaj28843/docs-mcp-server","owner":"pankaj28843","description":"Multi-tenant Model Context Protocol server for documentation search (FastMCP + BM25 + article-extractor)","archived":false,"fork":false,"pushed_at":"2026-01-27T16:22:16.000Z","size":1521,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T02:13:08.368Z","etag":null,"topics":["ai-assistant","bm25","documentation","documentation-search","fastmcp","mcp","mkdocs","model-context-protocol","python","uv"],"latest_commit_sha":null,"homepage":"https://pankaj28843.github.io/docs-mcp-server/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pankaj28843.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-31T09:18:26.000Z","updated_at":"2026-01-20T16:16:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pankaj28843/docs-mcp-server","commit_stats":null,"previous_names":["pankaj28843/docs-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pankaj28843/docs-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankaj28843%2Fdocs-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankaj28843%2Fdocs-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankaj28843%2Fdocs-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankaj28843%2Fdocs-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pankaj28843","download_url":"https://codeload.github.com/pankaj28843/docs-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankaj28843%2Fdocs-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28853166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-assistant","bm25","documentation","documentation-search","fastmcp","mcp","mkdocs","model-context-protocol","python","uv"],"created_at":"2026-01-02T11:00:49.028Z","updated_at":"2026-01-28T21:38:16.325Z","avatar_url":"https://github.com/pankaj28843.png","language":"Python","funding_links":[],"categories":["Documentation \u0026 Learning Resources"],"sub_categories":[],"readme":"# docs-mcp-server\n\n**Stop AI hallucinations — give your assistant real documentation.**\n\nA Model Context Protocol (MCP) server that provides AI assistants with access to documentation sources through a unified search API. Uses BM25 scoring with SQLite optimizations for reliable document search.\n\n[![Documentation](https://img.shields.io/badge/docs-mkdocs-blue)](https://pankaj28843.github.io/docs-mcp-server/)\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/)\n[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n\n## System Architecture\n\nThe server uses a consolidated DocumentationSearchEngine with a clean, simple architecture:\n\n- **Basic search implementation**: Production-ready BM25 scoring with SQLite FTS\n- **Deep module design**: Powerful functionality behind simple interface\n- **Single responsibility**: Document search and retrieval without complexity\n- **Unified interface**: Eliminates interface proliferation and classitis\n\nEach documentation source is indexed using BM25 scoring with configurable boost factors and snippet generation.\n\n## Key Features\n\n| Feature | Description |\n|---------|-------------|\n| 🎯 **Multi-Tenant** | Serve unlimited documentation sources from one container |\n| 🔍 **Reliable Search** | BM25 scoring with SQLite optimizations for consistent results |\n| 🔄 **Auto-Sync** | Scheduled crawlers for websites, git syncs for repositories |\n| 🚀 **MCP Native** | Standard tools (search, fetch, browse) for AI assistants |\n| 📚 **Offline-Ready** | Filesystem tenants for local markdown collections |\n\n---\n\n## Quick Start\n\nDeploy the server and test search functionality:\n\n```bash\n# Clone and install dependencies\ngit clone https://github.com/pankaj28843/docs-mcp-server.git\ncd docs-mcp-server\nuv sync\n\n# Create configuration with sample documentation sources\ncp deployment.example.json deployment.json\n\n# Deploy server container\nuv run python deploy_multi_tenant.py --mode online\n\n# Sync documentation source (Django REST Framework example)\nuv run python trigger_all_syncs.py --tenants drf --force\n\n# Test search functionality\nuv run python debug_multi_tenant.py --host localhost --port 42042 --tenant drf --test search\n```\n\nThe search test returns ranked results with BM25 scores and generated snippets.\n\n**MCP Integration**: Add to `~/.config/Code/User/mcp.json`:\n```json\n{\n  \"servers\": {\n    \"TechDocs\": {\n      \"type\": \"http\", \n      \"url\": \"http://127.0.0.1:42042/mcp\"\n    }\n  }\n}\n```\n\n**Verification**: Ask VS Code Copilot \"Search Django REST Framework docs for serializers\" to see results with actual documentation URLs.\n\n---\n\n## Documentation Sources\n\nPre-configured sources in `deployment.example.json`:\n\n| Codename | Source | Type |\n|----------|--------|------|\n| `django` | Django framework docs | Online (sitemap) |\n| `drf` | Django REST Framework | Online (sitemap) |\n| `fastapi` | FastAPI framework | Online (sitemap) |\n| `python` | Python stdlib | Online (sitemap) |\n| `pytest` | Pytest testing | Online (crawler) |\n| `cosmicpython` | Architecture patterns | Online (crawler) |\n| `mkdocs` | MkDocs docs | Git (GitHub) |\n| `aidlc-rules` | AIDLC workflow rules | Git (GitHub) |\n\nConfigure additional sources by editing `deployment.json`. See [deployment.json Schema](https://pankaj28843.github.io/docs-mcp-server/reference/deployment-json-schema/).\n\n---\n\n## Kiro CLI Integration\n\nThis project is optimized for Kiro CLI with:\n\n## Kiro CLI Integration\n\nThis project is optimized for Kiro CLI with:\n\n- **Maximally permissive execution** - All tools auto-approved in safe VM environment\n- **Validation hooks** - Auto-format on write, full validation on completion\n- **Skills integration** - Common tasks available via `/skill` command\n- **Cross-agent alignment** - Consistent behavior across Kiro, GitHub Copilot, and Gemini CLI\n\n### Quick Commands\n\n```bash\n# Activate the agent\nkiro-cli chat docs-mcp-dev\n\n# Use skills for common tasks\n/skill validate-code    # Full validation loop\n/skill quick-test      # Unit tests with coverage  \n/skill format-code     # Format and lint\n/skill build-docs      # Build documentation\n/skill deploy-local    # Deploy server locally\n```\n\n### Git Hooks\n\nPre-commit hooks automatically format code:\n```bash\n# Install pre-commit hooks\npre-commit install\n```\n\nPre-push hooks run tests with coverage requirements before pushing.\n\n---\n\n## Documentation\n\n| Section | Description |\n|---------|-------------|\n| 📚 [Tutorials](https://pankaj28843.github.io/docs-mcp-server/tutorials/getting-started/) | Step-by-step guides for new users |\n| 🛠️ [How-To Guides](https://pankaj28843.github.io/docs-mcp-server/how-to/configure-git-tenant/) | Solve specific tasks |\n| 📖 [Reference](https://pankaj28843.github.io/docs-mcp-server/reference/deployment-json-schema/) | Configuration schema, CLI, API |\n| 💡 [Explanations](https://pankaj28843.github.io/docs-mcp-server/explanations/architecture/) | Architecture, design decisions |\n\n---\n\n## Contributing\n\nSee [Contributing Guide](https://pankaj28843.github.io/docs-mcp-server/contributing/) for development setup and guidelines.\n\n---\n\n## License\n\nMIT License — See [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpankaj28843%2Fdocs-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpankaj28843%2Fdocs-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpankaj28843%2Fdocs-mcp-server/lists"}