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=(your 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,382 npmMIT
- AlicenseAqualityDmaintenanceProvides read-only SQL Server access via MCP tools and a chat interface for natural-language database queries.4ISC
- FlicenseNot gradedqualityCmaintenanceExposes read-only tools for querying production plan variance, issue tracking, plants, and shop floors from a DWH database, mirroring a dashboard's data.-