omnifabric-mcp
MCP server providing SQL access to a CloudSigma OmniFabric database (MatrixOne-compatible, MySQL wire protocol). It exposes a single tool, run_query, that executes any SQL statement and returns results as JSON.
README
omnifabric-mcp
MCP server giving an LLM SQL access to a CloudSigma OmniFabric database (MatrixOne-compatible, MySQL wire protocol).
What It Does
Exposes one MCP tool, run_query, that runs any SQL statement against your OmniFabric/MatrixOne instance over the standard MySQL wire protocol (via mysql2) and returns the rows as JSON. No schema-specific tooling, no query rewriting — whatever SQL you (or the LLM) send is what runs.
Prerequisites
- Node.js 20.6+ (uses the native
--env-fileflag for local testing) - A running OmniFabric instance and its connection details: host, port (default 6001), account UUID, username, role, password
- An MCP-compatible client (Claude Code, Claude Desktop, etc.)
Why a custom server instead of an existing one
- Memoria (
matrixorigin/Memoria) is a semantic-memory product built on MatrixOne (store/retrieve/branch/merge memories), not a raw SQL passthrough tool — doesn't fit. - mcp-server-mysql (generic community MySQL MCP server) looked like a fit but has two bugs for this use case: it hard-rejects any statement its SQL parser doesn't classify as
SELECT(soSHOW DATABASES— the exact acceptance-test query — gets rejected), and it wraps every query inSET SESSION TRANSACTION READ ONLY, which isn't confirmed to work on MatrixOne/OmniFabric. - So: this repo, built directly on
mysql2+@modelcontextprotocol/sdk(both do the heavy lifting — no custom wire protocol). One tool,run_query, passes SQL straight through.
Safety model
There is no app-level statement filtering (that's what broke the alternative above). Instead: connect with a read-only DB role. Ask CloudSigma/whoever provisioned the instance for a role scoped to SELECT only, or check whether OmniFabric supports creating one beyond accountadmin. Only point this server at a write-capable role if you actually need DDL/write access.
Quick install via AI agent
Give this prompt to Claude Code (or any AI coding agent with shell access):
Install the OmniFabric MCP server. Clone https://github.com/Momosasu/omnifabric-mcp.git, run
npm install, copy.env.exampleto.envand ask me for my OmniFabric credentials (host, account UUID, username, role, password) to fill it in, add it to my MCP config at~/.claude/.mcp.jsonwithargsset to["--env-file=<absolute path to .env>", "<absolute path to index.js>"], and verify the connection by callingrun_querywithSHOW DATABASES.
Quick Start
1. Install
git clone https://github.com/Momosasu/omnifabric-mcp.git
cd omnifabric-mcp
npm install
2. Configure credentials
cp .env.example .env
Fill in .env with the credentials from your OmniFabric provisioning (CloudSigma console or mo_ctl deploy output):
OMNIFABRIC_HOST=your-instance.omni.example.cloudsigma.com
OMNIFABRIC_PORT=6001
OMNIFABRIC_ACCOUNT=your-account-uuid
OMNIFABRIC_USER=your-username
OMNIFABRIC_ROLE=your-role
OMNIFABRIC_PASSWORD=your-password
Optional: sanity-check the login works before touching MCP at all:
mysql -h <OMNIFABRIC_HOST> -P 6001 -u <ACCOUNT>:<USER>:<ROLE> -p
Then validate your .env assembles into a well-formed config (no live DB connection made):
npm test
3. Add to Claude Code
Add to your MCP config (~/.claude/.mcp.json or project .mcp.json), pointing at the .env you just filled in — no need to re-enter credentials here:
{
"mcpServers": {
"omnifabric": {
"command": "node",
"args": ["--env-file=/path/to/omnifabric-mcp/.env", "/path/to/omnifabric-mcp/index.js"]
}
}
}
Replace /path/to/omnifabric-mcp with your actual path.
4. Verify
Ask Claude: "Use run_query to run SHOW DATABASES"
Tools
run_query(sql)— runs any SQL statement, returns rows as JSON.
That's it. No create_snapshot/restore_snapshot/UDF tools yet — the PRD explicitly says not to add those speculatively. Add a wrapper tool once there's a concrete use case for a specific OmniFabric SQL-Reference statement raw passthrough doesn't cover well.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。