Skip to main content
Glama
MCP DWH Server

MCP DWH Server

MCP DWH Server

Remote MCP server that provides read-only access to the Akij DWH (Data Warehouse) SQL Server database. Anyone can connect to this server to query manufacturing OEE data, SBU lists, and run ad-hoc SQL queries.

Tools Available

Tool

Description

sql_query

Execute read-only SELECT queries against the DWH

get_database_info

List databases, tables, and configuration

get_oee_data

Get OEE data aggregated by SBU and date

get_sbu_list

List all SBUs with codes and names

Related MCP server: mssql-mcp

Local Development

cd mcp-dwh-server
npm install
node index.js

Server runs on http://localhost:3000/mcp

Deploy to Vercel

  1. Install Vercel CLI: npm i -g vercel

  2. Run: vercel in this directory

  3. Set environment variables in Vercel dashboard:

    • MSSQL_SERVER = 203.202.241.211

    • MSSQL_PORT = 1433

    • MSSQL_USER = mcp_user

    • MSSQL_PASSWORD = (your password)

    • MSSQL_DATABASE = DWH

    • MSSQL_ENCRYPT = false

    • MSSQL_TRUST_SERVER_CERTIFICATE = true

Connect from OpenCode

Add to your opencode.json:

{
  "mcp": {
    "dwh-server": {
      "type": "remote",
      "url": "https://your-app.vercel.app/mcp"
    }
  }
}

Connect from any MCP client

Use the StreamableHTTP transport URL:

https://your-app.vercel.app/mcp

Security Notes

  • Only SELECT queries are allowed (no INSERT/UPDATE/DELETE/DDL)

  • Database credentials are stored as environment variables

  • CORS is enabled for cross-origin access

  • Consider adding authentication for production use

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables read-only exploration and querying of Microsoft SQL Server databases through a standardized interface.
      2
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Local MCP server for running ad hoc T-SQL queries against SQL Server databases, read-only by default with security safeguards.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only SQL Server access via MCP tools and a chat interface for natural-language database queries.
      4
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes read-only tools for querying production plan variance, issue tracking, plants, and shop floors from a DWH database, mirroring a dashboard's data.
      -