Fumadocs MCP服务器
MCP(模型上下文协议)服务器,为AI工具提供访问 富马酸类 文档。这使得AI助手更容易帮助您将Fumadocs集成到现有项目中。
特性
- 搜索文档 -按关键字查找相关文档
- 浏览主题 -浏览文档部分
- 获取页面 -获取任何文档页面的完整内容
- 安装指南 -获取特定于框架的安装说明
- 组件文档 -获取带有道具和示例的UI组件文档
安装
使用npx(推荐)
npx fumadocs-mcp全球安装
npm install -g fumadocs-mcp
fumadocs-mcp来源
git clone https://github.com/k4cper-g/fumadocs-mcp
cd fumadocs-mcp
npm install
npm run build配置
克劳德桌面版
添加到您的Claude Desktop配置文件中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json 视窗: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"fumadocs": {
"command": "npx",
"args": ["fumadocs-mcp"]
}
}
}或者,如果从源代码安装:
{
"mcpServers": {
"fumadocs": {
"command": "node",
"args": ["/path/to/fumadocs-mcp/build/index.js"]
}
}
}克劳德代码
在Claude Desktop中配置后,MCP将自动可用。
可用工具
list_topics
浏览可用的文档部分和主题。
Parameters:
- section (optional): "all" | "cli" | "headless" | "framework" | "mdx" | "ui"search_docs
按关键字搜索文档。
Parameters:
- query (required): Search query string
- section (optional): Filter to a specific sectionget_page
获取文档页面的完整内容。
Parameters:
- path (required): Documentation path (e.g., "/docs/manual-installation/next")get_setup_guide
获取将Fumadocs添加到现有项目的完整设置指南。
Parameters:
- framework (required): "next" | "react-router" | "tanstack-start" | "waku"
- includeUI (optional): Whether to include UI setup instructions (default: true)get_component
获取特定UI组件的文档。
Parameters:
- component (required): Component name (e.g., "accordion", "tabs", "codeblock")示例用法
配置后,您可以向Claude询问以下问题:
- “如何将Fumadocs添加到现有的Next.js项目中?”
- “演示如何在Fumadocs中使用Tabs组件”
- “搜索有关国际化的文档”
- “Fumadocs UI中有哪些可用组件?”
发展
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev
# Test with MCP Inspector
npm run inspector许可证
麻省理工学院

