Capacities MCP服务器是一个专为 Capacities 打造的模型上下文协议(MCP)服务器,可实现与您的知识管理系统的无缝集成。
此MCP服务器可访问当前所有Capacities API端点:
将Capacities MCP服务器添加到您的Claude桌面版配置中(在macOS上的路径为 ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"capacities": {
"command": "npx",
"args": ["-y", "capacities-mcp"],
"env": {
"CAPACITIES_API_KEY": "your_capacities_api_key_here"
}
}
}
}
您可以从 Capacities账户设置 中获取Capacities API密钥。
就是这么简单!当Claude桌面版启动时,服务器将自动下载并运行。
若要进行本地开发,您需要克隆并构建该项目:
git clone https://github.com/jemgold/capacities-mcp.git
cd capacities-mcp
bun install
cp .env.example .env
.env 文件中:CAPACITIES_API_KEY=your_api_key_here
bun run build
以交互模式启动开发服务器:
bun run dev
用于生产环境:
bun run start
检查服务器工具和架构:
bun run inspect
运行测试套件:
bun run test
检查代码格式和类型:
bun run lint
格式化代码:
bun run format
您可以从 Capacities账户设置 中获取Capacities API密钥。
有关详细的API文档,请参阅:
capacities_list_spaces获取您的所有个人空间列表。
capacities_get_space_info获取特定空间的详细信息,包括结构和集合。
capacities_search在您的各个空间中搜索内容,并可进行可选的过滤。
capacities_save_weblink将网页链接及可选的元数据保存到空间中。
capacities_save_to_daily_note将Markdown内容添加到空间中今天的每日笔记中。
Capacities API具有以下速率限制:
/spaces:每60秒5次请求/space-info:每60秒5次请求/search:每60秒120次请求/save-weblink:每60秒10次请求/save-to-daily-note:每60秒5次请求"Show me all my Capacities spaces"
"What spaces do I have in Capacities?"
"Get detailed information about my main workspace in Capacities"
"What structures and collections are in my [space name] space?"
"Search for 'project management' across all my Capacities spaces"
"Find all notes mentioning 'machine learning' in my research space"
"Search for 'meeting notes' but only check titles, not full content"
"Save this article to my research space: https://example.com/article"
"Bookmark this GitHub repo in my coding space with tags 'javascript' and 'tools'"
"Save this link with a custom title and description to my resources space"
"Add a summary of today's key insights to my daily note"
"Save these meeting notes to today's daily note in my work space"
"Add this quote to my daily note: [your quote here]"
"Search for 'productivity' in my work and personal spaces, but filter to only show task-related structures"
"Save this research paper to my academic space and add it to today's daily note as well"
"Find all my notes about 'AI tools' and then save the best ones as bookmarks"
本项目采用MIT许可证,详情请参阅 LICENSE 文件。