Provides tools for accessing Confluence spaces and pages, enabling document management and content retrieval from Confluence instances
Offers full API integration with GitBook for accessing and synchronizing documentation content with real-time sync capabilities
Enables access to GitHub repository documentation and wikis for automated documentation processing
Provides integration with GitLab project documentation and wikis for content extraction and management
Allows interaction with Notion databases and pages, including content extraction and webhook support for real-time updates
Provides access to Slack channel messages and knowledge base content for documentation purposes
AnyDocs MCP Server
Transform any website's documentation section into an MCP-compatible server using the Python MCP SDK.
๐ Overview
AnyDocs MCP Server is a comprehensive solution that turns any website's documentation into an interactive, AI-accessible knowledge base through the Model Context Protocol (MCP). It can scrape, index, and serve documentation from any website - from modern API docs to legacy documentation portals.
Key Features
๐ Universal Website Scraping: Turn ANY website's documentation into an interactive knowledge base
๐ Universal Adapter System: Support for GitBook, Notion, Confluence, and custom documentation platforms
๐ Advanced Search: Full-text search with SQLite FTS and semantic search capabilities
๐ Robust Authentication: API Key, OAuth2, and JWT-based authentication
โก High Performance: Async/await architecture with caching and rate limiting
๐๏ธ Web Management Interface: FastAPI-based admin panel for configuration and monitoring
๐ Real-time Monitoring: Health checks, metrics, and logging
๐ณ Docker Ready: Complete containerization with development and production configurations
๐ Auto-sync: Automatic content synchronization with source documentation
๐ Requirements
Python 3.11+ (recommended: 3.11 or 3.12)
SQLite 3.35+ (for FTS5 support)
Optional: Redis (for caching)
Optional: PostgreSQL/MySQL (for production)
๐ ๏ธ Installation
Using uvx (Recommended)
The easiest way to run AnyDocs MCP Server is using uvx
, which automatically manages dependencies and virtual environments:
Quick Start
Manual Installation
Running as a Python Module
After installation, you can also run the server as a Python module:
Docker Installation
๐ Usage
Starting the Server
AnyDocs MCP Server supports 3 startup modes:
1. Hybrid Mode (Default - Recommended)
Starts both MCP server and web management interface simultaneously:
MCP Server: Available at
http://localhost:8000
(handles MCP protocol communication)Web Interface: Available at
http://localhost:8080
for managementBest for: Most users who want both MCP functionality and web management
Important: Always use
uv run
to ensure the correct virtual environment is used.
2. MCP Server Only
Starts only the MCP server without web interface:
Use case: Production deployments where only MCP protocol is needed
Lighter resource usage: No web interface overhead
Best for: Headless servers, CI/CD environments
3. Web Interface Only
Starts only the web management interface:
Use case: Administrative tasks, configuration management
Web Interface: Available at
http://localhost:8080
Best for: Configuration, monitoring, and testing without MCP protocol
Additional Options
Command Line Options
Web Management Interface
Access the web interface at http://localhost:8080
to:
Configure document sources
Manage users and API keys
Monitor system health
View logs and metrics
Test MCP endpoints
MCP Client Integration
๐ Documentation Adapters
Supported Platforms
Platform | Status | Features |
Any Website | โ | Universal scraper for any documentation site |
GitBook | โ | Full API integration, real-time sync |
Notion | โ | Database and page content, webhooks |
Confluence | โ | Space and page management, attachments |
GitHub | โ | Repository documentation, wikis |
GitLab | โ | Project documentation, wikis |
SharePoint | โ | Document libraries, lists |
Slack | โ | Channel messages, knowledge base |
File System | โ | Local markdown files, watch mode |
Custom | ๐ง | Extensible adapter framework |
Adding a New Adapter
๐ง Configuration
Troubleshooting
Common Installation Issues
Python-Jose Import Error: If you encounter No module named 'jose'
error:
Dependency Check Failures: If you see errors about missing pyyaml
or beautifulsoup4
:
Configuration Attribute Errors: If you see 'AppConfig' object has no attribute 'server_host'
:
Virtual Environment Issues: If packages seem installed but imports fail:
Setup.py Conflicts: If you encounter conflicts with multiple setup files:
Environment Setup Best Practices
Always use for executing Python scripts to ensure correct environment
Use instead of
uv install
for package installationCheck virtual environment with
uv pip list
if imports failPull latest changes if you encounter configuration issues
Port Conflicts
If ports 8000 or 8080 are occupied:
Environment Variables
YAML Configuration
๐ MCP Tools
AnyDocs MCP Server provides the following tools:
Core Tools
search_documents - Search documents with full-text and semantic search
get_document - Retrieve a specific document by ID
list_sources - List all configured document sources
summarize_content - Summarize document content
ask_question - Ask questions about document content
AI-Powered Tools
generate_documentation - AI-assisted documentation generation
translate_content - Multi-language content translation
extract_insights - Extract insights and analytics from documentation
suggest_improvements - AI-powered content enhancement suggestions
๐งช Development
Setup Development Environment
Project Structure
Note: The project uses
pyproject.toml
for package configuration following modern Python packaging standards. The redundant rootsetup.py
has been removed to avoid conflicts.
Running Tests
๐ Monitoring & Observability
Health Checks
Metrics
Metrics are available at /metrics
endpoint in Prometheus format:
Request count and duration
Database connection pool status
Document sync statistics
Error rates and types
Cache hit/miss ratios
Logging
Structured logging with configurable levels:
๐ณ Docker Deployment
Development
Production
Monitoring Stack
๐ Security
Authentication Methods
API Keys: Simple token-based authentication
JWT Tokens: Stateless authentication with expiration
OAuth2: Integration with external providers
Security Best Practices
All API endpoints require authentication
Rate limiting on all endpoints
Input validation and sanitization
SQL injection prevention
CORS configuration
Security headers
Audit logging
Security Scanning
๐ Performance
Optimization Features
Async/Await: Non-blocking I/O operations
Connection Pooling: Efficient database connections
Caching: Redis-based caching with TTL
Rate Limiting: Prevent API abuse
Batch Processing: Efficient bulk operations
Lazy Loading: On-demand content loading
Performance Monitoring
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Workflow
Fork the repository
Create a feature branch
Make your changes
Add tests
Run the test suite
Submit a pull request
Code Standards
Follow PEP 8 style guide
Use type hints
Write comprehensive tests
Document public APIs
Use meaningful commit messages
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Model Context Protocol for the MCP specification
Python MCP SDK for the SDK implementation
All contributors and maintainers
๐ Support
๐ง Email: team@anydocs-mcp.com
๐ Issues: GitHub Issues
๐ Documentation: Full Documentation
Made with โค๏ธ by funky1688
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Transforms any website's documentation into an MCP-compatible interactive knowledge base with universal scraping, advanced search, and AI-powered tools. Supports GitBook, Notion, Confluence, and custom documentation platforms with real-time synchronization.
Related MCP Servers
- -securityFlicense-qualityAn MCP server that crawls API documentation websites and exposes their content to AI models, enabling them to search, browse, and reference API specifications.Last updated -
- -securityAlicense-qualityToolset that crawls websites, generates Markdown documentation, and makes that documentation searchable via a Model Context Protocol (MCP) server for integration with tools like Cursor.Last updated -26MIT License
- AsecurityFlicenseAqualityAn MCP server that helps teams create, manage, and access structured project documentation through six core document types, leveraging AI to generate comprehensive project knowledge management.Last updated -51,750100
- -securityAlicense-qualityA document-based MCP server that supports keyword searching and content retrieval from official website documentation.Last updated -5MIT License