mongo-knowledge
v2.0.5
Published
MongoDB MCP Server - 跨 IDE 知识库管理工具,支持记忆、技能、规则、MCP、经验、命令、上下文、工作流等
Maintainers
Readme
mongo-knowledge
MongoDB-based cross-IDE knowledge management MCP server.
Installation
npx -y mongo-knowledgeConfiguration
Add to your IDE's MCP configuration:
{
"mcpServers": {
"mongo-knowledge": {
"command": "npx",
"args": ["-y", "mongo-knowledge"],
"env": {
"MONGODB_URI": "mongodb://localhost:27017",
"MONGODB_DATABASE": "mcp_knowledge",
"MCP_USER_ID": "your-user-id"
}
}
}
}Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| MONGODB_URI | Yes | - | MongoDB connection string |
| MONGODB_DATABASE | No | mcp_knowledge | Database name |
| MCP_USER_ID | No | default | User identifier |
| MCP_DEVICE_ID | No | auto-generated | Device identifier |
| MCP_IDE_SOURCE | No | unknown | IDE source identifier |
| MCP_ENABLE_EMBEDDING | No | false | Enable semantic search |
Supported IDEs
- Cursor
- Trae
- Windsurf
- Qoder
- Any MCP-compatible IDE
Knowledge Types
| Type | Description |
|------|-------------|
| Memories | User preferences, facts, history |
| Skills | Reusable scripts and capabilities |
| Rules | Coding guidelines and constraints |
| MCPs | MCP server configurations |
| Experiences | Best practices and lessons learned |
| Commands | Quick command templates |
| Contexts | Project/domain context information |
| Workflows | Multi-step automation workflows |
Tools
CRUD Operations
knowledge_create- Create knowledge documentknowledge_read- Read knowledge documentknowledge_update- Update knowledge documentknowledge_delete- Delete knowledge documentknowledge_list- List knowledge documentsknowledge_upsert- Create or update documentknowledge_stats- Get statisticsknowledge_export- Export knowledge data
Shortcuts
memory_add- Quick add memorymemory_search- Search memoriesexperience_add- Add experiencecontext_set- Set contextcommand_add- Add command templateworkflow_create- Create workflow
Sync
mcp_sync- Sync MCP configurationrule_sync- Sync ruleskill_sync- Sync skillget_user_info- Get user/device info
Auto Sync
auto_sync_start- Start auto syncauto_sync_stop- Stop auto syncauto_sync_status- Get sync statusauto_sync_config- Configure syncauto_sync_flush- Flush pending events
Development
# Install dependencies
npm install
# Development mode
npm run dev
# Build
npm run build
# Type check
npm run typecheck
# Lint
npm run lintLicense
MIT
