Bucketeer Docs Local MCP Server
A local server to query Bucketeer documentation, which automatically fetches and caches content from its GitHub repository.
Bucketeer Docs Local MCP Server
Overview
This project provides a Model Context Protocol (MCP) server for Bucketeer documentation. It offers an interface for searching and retrieving content from Bucketeer's feature flag and experimentation platform documentation, enabling AI assistants to provide accurate information about Bucketeer's features and usage.
Environment Setup
Requirements
- Node.js 18+
- npm
Installation Steps
- Clone the repository:
git clone <repository-url>
cd bucketeer-docs-local-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
- Build the document index:
npm run build:index
Starting the Server
npm start
Document Sources
The server automatically fetches and indexes documentation from the bucketeer-io/bucketeer-docs repository:
-
GitHub Repository Integration:
- Automatically fetches
.mdxfiles from thedocs/directory and all subdirectories - Processes frontmatter and markdown content for optimal search indexing
- Caches fetched content using SHA hashes and only updates when files are modified
- Supports recursive directory traversal to capture all documentation files
- Automatically fetches
-
Intelligent Indexing:
- Extracts keywords from titles, descriptions, headers, and content
- Builds searchable index with relevance scoring based on keyword matches and full-text search
- Optimized for Bucketeer-specific terminology (feature flags, experiments, SDKs, targeting, etc.)
- Handles frontmatter extraction (title, description) from MDX files
-
Cache Management:
- Files are cached locally in
files/docs/directory as JSON files - Document index is stored in
files/index/document-index.json - GitHub cache stored in
files/docs/github_cache.jsonwith SHA-based change detection - Use
npm run build:index:forceto force rebuild the entire index
- Files are cached locally in
Using with npx
First-time Setup
- Build the document index:
npx @bucketeer/docs-local-mcp-server build-index
- Use in your MCP configuration as shown in the next section.
Updating the Index
To update the documentation index (e.g., when new documentation is available):
npx @bucketeer/docs-local-mcp-server build-index --force
Cursor and Claude Desktop Configuration
Configure the MCP Server by adding the following to your mcp.json or claude_desktop_config.json file, referring to the documentation for Cursor (https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers) and Claude Desktop (https://modelcontextprotocol.io/quickstart/user):
Quick Install with Cursor Deeplink
For Cursor users, you can install the MCP server with a single click using the deeplink below:
This will automatically configure the MCP server in your Cursor settings. After clicking the link, Cursor will prompt you to install the server.
Option 1: Using npx (Recommended)
{
"mcpServers": {
"bucketeer-docs": {
"type": "stdio",
"command": "npx",
"args": ["@bucketeer/docs-local-mcp-server"]
}
}
}
Option 2: Using local installation
{
"mcpServers": {
"bucketeer-docs": {
"type": "stdio",
"command": "npm",
"args": ["start", "--prefix", "/path/to/bucketeer-docs-local-mcp-server"]
}
}
}
Usage
When the MCP server is running, the following tools are available:
1. search_docs - Search Bucketeer Documentation
- Parameter:
query(string) - The search query - Parameter:
limit(number, optional) - Maximum number of results to return (default: 5)
Example:
{
"name": "search_docs",
"arguments": {
"query": "feature flags SDK integration",
"limit": 5
}
}
Response: Returns an array of search results with title, URL, path, description, excerpt, and relevance score.
2. get_document - Get Specific Document Content
- Parameter:
path(string) - Document path obtained from search results
Example:
{
"name": "get_document",
"arguments": {
"path": "getting-started/create-feature-flag"
}
}
Response: Returns the full document content including title, description, URL, and complete markdown content.
Development Commands
npm run build- Compile TypeScript files todist/directorynpm run build:index- Build/update the document index from GitHub repositorynpm run build:index:force- Force rebuild the entire index (ignores cache)npx @bucketeer/docs-local-mcp-server build-index- Build index using npxnpx @bucketeer/docs-local-mcp-server build-index --force- Force rebuild index using npxnpm run dev:index- Build and update index in development modenpm run dev- Build and start server in development modenpm run lint- Run Biome lintingnpm run lint:fix- Run Biome linting and fix linting errors
Configuration
The server is configured via src/config/index.ts:
- siteName: "Bucketeer"
- websiteUrl: "https://docs.bucketeer.io"
- githubRepo: "https://github.com/bucketeer-io/bucketeer-docs"
- docsDirectory: "docs" (directory in GitHub repo containing documentation)
- searchLimitDefault: 5 (default number of search results)
- useGithubSource: true (always uses GitHub as source)
File Structure
files/
├── docs/ # Cached JSON files from GitHub repository
├── index/ # Document search index
│ └── document-index.json
└── [created automatically when building index]
Architecture
The server consists of several key components:
- GithubDocumentFetcher: Recursively fetches
.mdxfiles from the GitHub repository - IndexManager: Builds and manages the searchable document index
- SearchService: Provides search functionality with keyword matching and full-text search
- MCP Server: Exposes tools via the Model Context Protocol
License
Apache License 2.0, see LICENSE.
Contributing
We would ❤️ for you to contribute to Bucketeer and help improve it! Anyone can use and enjoy it!
Please follow our contribution guide here.
Related Servers
EzBiz Business Intelligence
AI-powered competitive analysis, review monitoring, web presence scoring, and market research for businesses.
Teleport Documentation
Search and query Teleport's documentation using embeddings stored in a local Chroma vector database.
Semiconductor Supply Chain MCP Server
Access semiconductor B2B platforms like AnySilicon and DesignReuse for IP core and ASIC service procurement.
The Movie Database (TMDB)
Integrates with The Movie Database (TMDB) API, allowing AI assistants to search for movies, retrieve details, and generate related content.
IndieStack
Search and discover 130+ curated indie SaaS tools from your AI coding assistant
Entscheidsuche
Search Swiss legal decisions using the entscheidsuche.ch API.
Bus Nearby MCP
Provides access to the Israeli transport API for geocoding and transit directions.
Drawing Guides
Access step-by-step drawing tutorials and guides from easydrawingguides.com for artists of all skill levels.
NS Travel Information MCP Server
Access real-time travel information for the Dutch railways (NS).
VelociRAG
Lightning-fast RAG for AI agents. 4-layer fusion (vector, BM25, graph, metadata), ONNX Runtime, sub-200ms search, no PyTorch.