Doctor

Web search and scrapingData and AI

Doctor is a tool for discovering, crawl, and indexing web sites to be exposed as an MCP server for LLM agents.

Your AI app calls the Doctor MCP server, which does the web search and scraping and data and AI work and sends the result back to the chat.

About Doctor

Doctor is a community MCP server from sisig-ai, filed in our directory under web search and scraping and data and ai. Doctor is a tool for discovering, crawl, and indexing web sites to be exposed as an MCP server for LLM agents.

At a glance

Publisher
sisig-ai (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
461

How to set up Doctor

  1. Follow the install steps in the Doctor README; it is written in Python, so have that toolchain ready.
  2. Check the Doctor README for keys or settings; the registry lists none that Doctor requires.
  3. Add Doctor to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Doctor tools to confirm the connection.
  5. Run one read-only task with Doctor first, and keep your app asking before each tool call until the results look right.

Doctor compared with similar servers

  • GrokSearch Rs by Episkey-G has fewer GitHub stars than Doctor (455 against 461); both are community servers, and both run locally.
  • Ask Search by ythx-101 has more GitHub stars than Doctor (539 against 461); both are community servers, and both run locally.
  • Kindly Web Search by Shelpuk-AI-Technology-Consulting has fewer GitHub stars than Doctor (407 against 461); both are community servers, and both run locally.

Before you connect Doctor

  • Give Doctor its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Doctor tool call until you trust what it does with them.
  • Treat text that Doctor fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Doctor on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Doctor

How marketing and sales teams put Doctor to work, by company size. Pick the size closest to yours and start Doctor on one use case.

Small business

  • A founder can use Doctor to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Doctor what competitors launched this month and get the pages, not just a summary.
  • A small team can use Doctor to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Doctor runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Doctor to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Doctor to research accounts from public pages and add one specific line to each first email.
  • Marketing ops can connect Doctor to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start Doctor on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise research and competitive intel teams can schedule Doctor to monitor many sources, with results stored and cited for review.
  • Large orgs can route Doctor through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Enterprises can run Doctor inside their own cloud and data boundary, so models and data stay where governance requires.
  • Doctor is a community server, so have security review the code and pin a version before Doctor touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Doctor README

From sisig-ai/doctor on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

🩺 Doctor

A tool for discovering, crawl, and indexing web sites to be exposed as an MCP server for LLM agents for better and more up-to-date reasoning and code generation.

🔍 Overview

Doctor provides a complete stack for:

  • Crawling web pages using crawl4ai with hierarchy tracking
  • Chunking text with LangChain
  • Creating embeddings with OpenAI via litellm
  • Storing data in DuckDB with vector search support
  • Exposing search functionality via a FastAPI web service
  • Making these capabilities available to LLMs through an MCP server
  • Navigating crawled sites with hierarchical site maps

🏗️ Core Infrastructure

🗄️ DuckDB
  • Database for storing document data and embeddings with vector search capabilities
  • Managed by unified Database class
📨 Redis
  • Message broker for asynchronous task processing
🕸️ Crawl Worker
  • Processes crawl jobs
  • Chunks text
  • Creates embeddings
🌐 Web Server
  • FastAPI service exposing endpoints
  • Fetching, searching, and viewing data
  • Exposing the MCP server

💻 Setup

⚙️ Prerequisites
  • Docker and Docker Compose
  • Python 3.10+
  • uv (Python package manager)
  • OpenAI API key
📦 Installation
  1. Clone this repository
  2. Set up environment variables:
    export OPENAI_API_KEY=your-openai-key
    
  3. Run the stack:
    docker compose up
    

👁 Usage

  1. Go to http://localhost:9111/docs to see the OpenAPI docs
  2. Look for the /fetch_url endpoint and start a crawl job by providing a URL
  3. Use /job_progress to see the current job status
  4. Configure your editor to use http://localhost:9111/mcp as an MCP server

☁️ Web API

Core Endpoints
  • POST /fetch_url: Start crawling a URL
  • GET /search_docs: Search indexed documents
  • GET /job_progress: Check crawl job progress
  • GET /list_doc_pages: List indexed pages
  • GET /get_doc_page: Get full text of a page
Site Map Feature

The Maps feature provides a hierarchical view of crawled websites, making it easy to navigate and explore the structure of indexed sites.

Endpoints:

  • GET /map: View an index of all crawled sites
  • GET /map/site/{root_page_id}: View the hierarchical tree structure of a specific site
  • GET /map/page/{page_id}: View a specific page with navigation (parent, siblings, children)
  • GET /map/page/{page_id}/raw: Get the raw markdown content of a page

Features:

  • Hierarchical Navigation: Pages maintain parent-child relationships, allowing you to navigate through the site structure
  • Domain Grouping: Pages from the same domain crawled individually are automatically grouped together
  • Automatic Title Extraction: Page titles are extracted from HTML or markdown content
  • Breadcrumb Navigation: Easy navigation with breadcrumbs showing the path from root to current page
  • Sibling Navigation: Quick access to pages at the same level in the hierarchy
  • Legacy Page Support: Pages crawled before hierarchy tracking are grouped by domain for easy access
  • No JavaScript Required: All navigation works with pure HTML and CSS for maximum compatibility

Usage Example:

  1. Crawl a website using the /fetch_url endpoint
  2. Visit /map to see all crawled sites
  3. Click on a site to view its hierarchical structure
  4. Navigate through pages using the provided links

🔧 MCP Integration

Ensure that your Docker Compose stack is up, and then add to your Cursor or VSCode MCP Servers configuration:

"doctor": {
    "type": "sse",
    "url": "http://localhost:9111/mcp"
}

🧪 Testing

Running Tests

To run all tests:

# Run all tests with coverage report
pytest

To run specific test categories:

# Run only unit tests
pytest -m unit

# Run only async tests
pytest -m async_test

# Run tests for a specific component
pytest tests/lib/test_crawler.py
Test Coverage

The project is configured to generate coverage reports automatically:

# Run tests with detailed coverage report
pytest --cov=src --cov-report=term-missing
Test Structure
  • tests/conftest.py: Common fixtures for all tests
  • tests/lib/: Tests for library components
    • test_crawler.py: Tests for the crawler module
    • test_crawler_enhanced.py: Tests for enhanced crawler with hierarchy tracking
    • test_chunker.py: Tests for the chunker module
    • test_embedder.py: Tests for the embedder module
    • test_database.py: Tests for the unified Database class
    • test_database_hierarchy.py: Tests for database hierarchy operations
  • tests/common/: Tests for common modules
  • tests/services/: Tests for service layer
    • test_map_service.py: Tests for the map service
  • tests/api/: Tests for API endpoints
    • test_map_api.py: Tests for map API endpoints
  • tests/integration/: Integration tests
    • test_processor_enhanced.py: Tests for enhanced processor with hierarchy

🐞 Code Quality

Pre-commit Hooks

The project is configured with pre-commit hooks that run automatically before each commit:

  • ruff check --fix: Lints code and automatically fixes issues
  • ruff format: Formats code according to project style
  • Trailing whitespace removal
  • End-of-file fixing
  • YAML validation
  • Large file checks
Setup Pre-commit

To set up pre-commit hooks:

# Install pre-commit
uv pip install pre-commit

# Install the git hooks
pre-commit install
Running Pre-commit Manually

You can run the pre-commit hooks manually on all files:

# Run all pre-commit hooks
pre-commit run --all-files

Or on staged files only:

# Run on staged files
pre-commit run

⚖️ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Questions about Doctor

What is the Doctor MCP server?

Doctor is a tool for discovering, crawl, and indexing web sites to be exposed as an MCP server for LLM agents. Doctor is maintained by sisig-ai on GitHub at sisig-ai/doctor, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Doctor MCP server?

Doctor doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (sisig-ai/doctor). Like most servers, Doctor ends with a command or URL you paste into your AI app's MCP config.

Does Doctor need an API key?

The registry lists no required keys for Doctor. Check the Doctor README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Doctor an official MCP server?

No. Doctor is a community server maintained by sisig-ai. Community servers can be excellent; read the code and the open issues before you give Doctor access to company data.

What license is Doctor under?

Doctor is released under the MIT license, according to its GitHub repository. The license covers the code of Doctor; the service it connects to has its own terms.