⚡ Omni-MCP
🔌 通用MCP资源服务器
_装载任何文件夹、URL或数据库。输入任何AI。无需任何代码。_
](https://nodejs.org) 
______________________________________________________________________
🚀 亮点
- 📂 文件夹装载 --用一个命令挂载任何目录;
.txt/.md文件立即变得可读 - 🌐 Web剪贴 --提供URL,自动转换为Markdown,缓存并持久化
- 🗄️ SQLite适配器 --装载数据库,自动公开其架构,安全运行SELECT查询
- 📟 TUI仪表板 --墨水驱动的终端UI,具有实时状态、挂载和AI活动
- 💾 持久配置 --装载一次,重新启动时自动恢复
______________________________________________________________________
🛠️ 快速开始
1.安装
git clone https://github.com/DEM-YU/omni-mcp.git
cd omni-mcp
npm install2.连接到您的AI客户端
🌌 Antigravity (~/.gemini/antigravity/mcp_config.json)
{
"mcpServers": {
"omni-mcp": {
"command": "npx",
"args": ["tsx", "/path/to/omni-mcp/src/index.ts"],
"cwd": "/path/to/omni-mcp"
}
}
}🧠 Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"omni-mcp": {
"command": "npx",
"args": ["tsx", "/path/to/omni-mcp/src/index.ts"],
"cwd": "/path/to/omni-mcp"
}
}
}3.开始说话
连接后,只需告诉你的AI:
"Mount the folder /Users/me/research as a knowledge base"
"Scrape this page: https://example.com"
"Mount the database /path/to/data.db and query all users"______________________________________________________________________
📂 支持的来源
本地文件夹
| 工具 | 说明 |
|---|---|
mount_folder | 挂载本地文件夹,暴露 .txt / .md 文件 |
add_new_source | 别名为 mount_folder |
unmount_folder | 卸载以前装载的文件夹 |
网页
| 工具 | 说明 |
|---|---|
mount_url | 获取网页,转换为Markdown,缓存并作为资源公开 |
数据库存储
| 工具 | 说明 |
|---|---|
mount_sqlite | 挂载SQLite数据库(只读),自动公开模式 |
query_sqlite | 安全执行SELECT查询,返回JSON(最多100行) |
将军
| 工具 | 说明 |
|---|---|
list_mounts | 列出所有已装载的文件夹、网页和数据库 |
______________________________________________________________________
📟 TUI仪表板
启动时,stderr上会显示实时终端仪表板:
- 状态指示 --服务器联机/启动
- 📂 文件夹 --已挂载文件夹树
- 🌐 网页 --已装载URL列表
- 🗄️ 数据库 --已连接数据库列表
- ⚡ 实时活动 --AI读取资源时实时闪烁
💡 TUI渲染为stderr;MCP JSON-RPC通过stdout/stdin--零干扰。
______________________________________________________________________
📁 项目结构
omni-mcp/
├── src/
│ ├── index.ts # MCP Server + all tool handlers
│ ├── events.ts # Event bus (Server ↔ Dashboard)
│ └── dashboard.tsx # Ink TUI dashboard
├── test-resources/ # Sample files for testing
├── config.json # Auto-generated persistence (gitignored)
├── package.json
├── tsconfig.json
└── README.md______________________________________________________________________
📄 许可证
麻省理工学院©布鲁克斯
______________________________________________________________________
内置于🧡 用于AI原生开发人员工作流程。
_如果Omni MCP使您免于复制粘贴,请给它一个⭐_
