Databricks Documentation MCP Server

Databricks Documentation MCP Server

Enables AI assistants to search and explore Databricks AWS documentation through semantic search and 10 MCP tools.

Category
访问服务器

README

Databricks Documentation MCP Server 📚

Make Databricks documentation instantly accessible to AI assistants through the Model Context Protocol (MCP)

License: MIT Python 3.12+ FastMCP

⚠️ DISCLAIMER: This is NOT an official Databricks product and is NOT supported by Databricks. This is a community project that crawls and indexes publicly available Databricks documentation to provide MCP integration. Use at your own risk. For official Databricks support, please contact Databricks directly.

This MCP server provides AI assistants like Claude, GPT-4, and others with semantic search access to the complete Databricks AWS documentation (~3,200 pages). It crawls, caches, indexes, and serves documentation through both MCP tools and resources.

✨ Features

  • 🔍 Semantic Search: Find relevant documentation using natural language queries
  • 📦 Complete Coverage: Access to 3,181+ pages of Databricks AWS documentation
  • Fast Async Crawler: 5-10x faster than traditional crawlers (crawls full docs in ~5-7 minutes)
  • 🗄️ Local Caching: Crawled pages stored locally for offline access and fast queries
  • 🧠 Vector Search: Powered by ChromaDB and sentence-transformers embeddings
  • 🔄 Auto-Refresh: Optional daily documentation refresh
  • 🛠️ 10 MCP Tools: Search, recommend, explore documentation programmatically
  • 📖 MCP Resources: Browse documentation directly
  • 🎯 AI IDE Compatible: Works with Cursor, Claude Code, and other MCP clients

🚀 Quick Start

Prerequisites

  • Python 3.11 or higher
  • uv (recommended) or pip

Installation

# Clone the repository
git clone https://github.com/YOUR-USERNAME/databricks-docs-mcp.git
cd databricks-docs-mcp

# Quick start script (installs dependencies, crawls docs, starts server)
chmod +x start_server.sh
./start_server.sh

⏱️ Initial Setup Time Expectations:

  • First-time crawl: ~5-7 minutes (3,181 pages with fast async crawler)
  • Embedding generation: ~10-15 minutes (creating vector embeddings for all pages)
  • Total first run: ~15-22 minutes
  • Subsequent starts: ~5-10 seconds (uses cached data)

The server will automatically crawl and index documentation on first run. Grab a coffee! ☕

Manual Installation

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies and create virtual environment
uv sync --group dev

# Crawl documentation (fast mode) - Takes ~5-7 minutes
uv run python -m databricks_docs_mcp crawl --fast

# Start MCP server (first start: ~10-15 min for indexing, subsequent: ~5-10 sec)
uv run python -m databricks_docs_mcp.server --no-scheduler

💡 Tip: The --fast flag uses the async crawler for 5-10x faster crawling. The server automatically creates embeddings on first startup.

📖 Usage

Available MCP Tools

The server exposes 10 MCP tools for AI assistants:

  1. search_docs - Search documentation with semantic search
  2. get_page - Retrieve a specific documentation page
  3. list_categories - List all documentation categories
  4. search_by_category - Search within a specific category
  5. get_page_sections - Get page table of contents
  6. recommend_related - Find related documentation pages
  7. suggest_docs - Get suggestions based on context
  8. get_quickstart - Find quickstart guides for topics
  9. explore_category - Browse all pages in a category
  10. get_popular_topics - Get most popular documentation topics

Example Queries in AI IDEs

"Search Databricks docs for Lakeflow Connect with Salesforce"
"How do I use MLflow to track experiments?"
"Show me Unity Catalog best practices"
"What are Delta Lake optimization techniques?"

CLI Commands

# Crawl documentation
python -m databricks_docs_mcp crawl --fast --max-pages 1000

# Check statistics
python -m databricks_docs_mcp stats

# Reindex existing data
python -m databricks_docs_mcp index

# Refresh documentation
python -m databricks_docs_mcp refresh

# Start server
python -m databricks_docs_mcp server --no-scheduler

🔧 Configuration

Configure in AI IDEs

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "databricks-docs": {
      "url": "http://localhost:8100/mcp"
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "databricks-docs": {
      "command": "python",
      "args": ["-m", "databricks_docs_mcp", "server", "--no-scheduler"],
      "cwd": "/path/to/databricks_docs_mcp",
      "env": {
        "PYTHONPATH": "/path/to/parent/directory"
      }
    }
  }
}

🏗️ Architecture

databricks_docs_mcp/
├── crawler/            # Web scraping and parsing
│   ├── scraper.py     # Original sequential crawler
│   ├── async_scraper.py   # Fast async crawler (5-10x faster)
│   ├── parser.py      # HTML to Markdown conversion
│   └── scheduler.py   # Daily auto-refresh scheduler
├── embeddings/        # Vector search components
│   ├── embedder.py    # Sentence-transformer embeddings
│   ├── vector_db.py   # ChromaDB wrapper
│   └── search.py      # Semantic search engine
├── resources/         # MCP resources
│   └── docs_resources.py
├── storage/           # Data models and caching
│   ├── models.py      # Pydantic data models
│   ├── cache.py       # Local cache management
│   └── data/          # Cached documentation
├── tools/             # MCP tools
│   ├── search.py      # Search tools
│   └── recommend.py   # Recommendation tools
├── tests/             # Unit tests
├── server.py          # FastMCP server
└── __main__.py        # CLI entry point

📊 Performance

  • Crawl Speed: ~5-7 minutes for 3,181 pages (async mode)
  • Indexing Speed: ~5-6 minutes for full documentation
  • Search Latency: <100ms for semantic queries
  • Storage: ~50MB for cached pages, ~200MB for embeddings

🛠️ Development

Running Tests

pytest tests/

Code Style

# Format code
black .

# Lint
flake8 .

# Type check
mypy .

📝 Documentation

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📄 License

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

🙏 Acknowledgments

📬 Support

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选