MCP DWH Server
MCP DWH Server
远程 MCP 服务器,提供对 Akij DWH(数据仓库)SQL Server 数据库的只读访问权限。任何人都可以连接到该服务器,查询制造 OEE 数据、SBU 列表,并运行临时 SQL 查询。
可用工具
工具 | 描述 |
| 对 DWH 执行只读 SELECT 查询 |
| 列出数据库、表和配置信息 |
| 获取按 SBU 和日期聚合的 OEE 数据 |
| 列出所有 SBU 及其代码和名称 |
Related MCP server: mssql-mcp
本地开发
cd mcp-dwh-server
npm install
node index.js服务器运行在 http://localhost:3000/mcp
部署到 Vercel
安装 Vercel CLI:
npm i -g vercel在此目录下运行:
vercel在 Vercel 控制台中设置环境变量:
MSSQL_SERVER=203.202.241.211MSSQL_PORT=1433MSSQL_USER=mcp_userMSSQL_PASSWORD=(你的密码)MSSQL_DATABASE=DWHMSSQL_ENCRYPT=falseMSSQL_TRUST_SERVER_CERTIFICATE=true
从 OpenCode 连接
添加到你的 opencode.json:
{
"mcp": {
"dwh-server": {
"type": "remote",
"url": "https://your-app.vercel.app/mcp"
}
}
}从任意 MCP 客户端连接
使用 StreamableHTTP 传输 URL:
https://your-app.vercel.app/mcp安全说明
仅允许 SELECT 查询(不支持 INSERT/UPDATE/DELETE/DDL)
数据库凭据以环境变量形式存储
已启用 CORS 以支持跨域访问
生产环境建议考虑添加身份验证
Related MCP Connectors
Securely query and analyze business data, dashboards, projections, alerts, and knowledge.
Query your own databases and Data Sets with read-only SQL, and build hosted dashboards.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Query your databases and build dashboards, Streamlit apps and reports your team logs in to.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables read-only exploration and querying of Microsoft SQL Server databases through a standardized interface.2ISC
- AlicenseNot gradedqualityDmaintenanceLocal MCP server for running ad hoc T-SQL queries against SQL Server databases, read-only by default with security safeguards.1,789 npmMIT
- AlicenseAqualityDmaintenanceProvides read-only SQL Server access via MCP tools and a chat interface for natural-language database queries.4ISC
- FlicenseNot gradedqualityDmaintenanceExposes read-only tools for querying production plan variance, issue tracking, plants, and shop floors from a DWH database, mirroring a dashboard's data.-