Expo Docs
Model Context Protocol server for Expo documentation
Ask AI about Expo Docs
Powered by Claude Β· Grounded in docs
I know everything about Expo Docs. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Expo Docs MCP Server
A Model Context Protocol (MCP) server that provides access to Expo documentation with advanced search and navigation capabilities.
Features
- π Search Documentation: Search through Expo docs with section and version filtering
- π Full Content Access: Get complete documentation pages by URL or path
- π Browse Sections: List available documentation sections and topics
- π οΈ API References: Access detailed API documentation for Expo SDK modules
- π Quick Start Guides: Platform-specific getting started guides
- π¦ Version Support: Access documentation for different SDK versions
- πΎ Smart Caching: 1-week cache for optimal performance
- π± Offline First: Downloads and indexes documentation locally for fast, reliable access
- π Fuzzy Search: Advanced search with exact, partial, and fuzzy matching
Installation
npm install expo-docs-mcp
Or use with npx:
npx expo-docs-mcp
Configuration
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"expo-docs": {
"command": "npx",
"args": ["expo-docs-mcp"]
}
}
}
Available Tools
1. search_expo_docs
Search through Expo documentation.
Parameters:
query(required): Search querysection(optional): Documentation section (home,guides,eas,reference,learn,versions)version(optional): SDK version (e.g.,latest,v51.0.0,v50.0.0)
2. get_expo_doc_content
Get the full content of a specific documentation page.
Parameters:
url(optional): Full URL of the documentation pagepath(optional): Path within docs (e.g.,guides/routing)version(optional): SDK version
3. list_expo_sections
List all available documentation sections and topics.
Parameters:
section(optional): Section to list contents forversion(optional): SDK version
4. get_expo_api_reference
Get API reference for a specific Expo SDK module.
Parameters:
module(required): Module name (e.g.,expo-camera,expo-location)version(optional): SDK version
5. get_expo_quick_start
Get quick start guide for Expo.
Parameters:
platform(optional): Target platform (ios,android,web,all)
Development
Setup
# Clone the repository
git clone https://github.com/ah2-io/expo-docs-mcp.git
cd expo-docs-mcp
# Install dependencies
npm install
# Build the project
npm run build
Scripts
npm run build- Build the TypeScript projectnpm run dev- Watch mode for developmentnpm start- Run the built servernpm run download-docs- Download and cache Expo documentationnpm run init- Build and download docs (first-time setup)
Project Structure
βββ src/
β βββ index.ts # MCP server setup and tool handlers
β βββ offline-docs-fetcher.ts # Offline documentation management and search
β βββ download-docs.ts # Documentation download from GitHub
β βββ expo-docs-fetcher.ts # Online documentation fetching (legacy)
βββ docs-cache/ # Downloaded documentation files
βββ dist/ # Compiled JavaScript output
βββ package.json
βββ tsconfig.json
βββ README.md
How It Works
- Documentation Download: On first run, downloads Expo documentation from GitHub (expo/expo repository)
- Local Indexing: Builds a searchable index of all documentation files with metadata extraction
- Fuzzy Search: Provides multiple search strategies including exact matching, partial matching, and fuzzy search
- Smart Caching: Caches search results and content for 1 week to improve performance
- Offline Operation: Works entirely offline after initial documentation download
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details.
About
This MCP server is developed by ah2.io, a software development company focused on building innovative tools and solutions for developers and businesses.
