Urgent.News

What's breaking now, across thousands of outlets.

AI

I Connected Claude to 20 Years of Azure SQL Data with a Custom MCP Server. Here's How.

A client came to me with a request that sounded simple: "We have 20 years of data in our database. We want our managers to ask Claude questions and get reports. Marketing, HR, R&D, Production, Procurement, Sales — all of them." No dashboards, no BI tool, no SQL training. Just: type a question, get an answer from the actual data. The database is Azure SQL. It's been growing since the mid-2000s. It…

A client sought a solution to enable their managers to ask Claude questions and receive reports from 20 years of Azure SQL Database data, without using dashboards, BI tools, or SQL training. The database contained hundreds of tables, including legacy and half-finished migration tables, making it challenging for a language model like Claude to process.

The solution involved creating a custom MCP (Model Context Protocol) server on the client's VPS, which whitelisted tables accessible to Claude, ensuring the language model could only see and query the relevant tables for each department. The MCP server utilized Node.js, the official SDK, and the Zod library to define table whitelists, schema descriptions, and read-only queries.

With just one shared key and a small audience, the architecture provided a secure and efficient way for managers to interact with the data using natural language questions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

LLM Wiki's Two-Step Chain-of-Thought Ingest: How Incremental Cache and Source Traceability Replace Traditional RAG

Traditional RAG systems retrieve chunks and answer from scratch every time. LLM Wiki takes a different path: it analyzes documents once, generates persistent wiki pages with full source traceability…

  • LLM Wiki uses a two-step chain-of-thought with incremental cache
  • Persistent wiki pages created after analyzing documents once
  • Caching intermediate results reduces cost of incremental updates

More from Tuesday 15 September →