Short answer: the Model Context Protocol (MCP) is an open standard for connecting AI apps to outside systems. A server offers three kinds of thing. Tools are actions the AI can call, like "run this read-only query". Resources are data it can read, like a table's schema. Prompts are reusable templates, like "explain this query". For data, put the schema in resources, keep tools read-only unless there is a reason, and use prompts for the questions your team asks every week.
Without MCP, an AI assistant knows your database only from what you paste in. With an MCP server in front of it, the assistant can look up the schema itself and run the query you approved, through one standard any MCP client understands.
What are the three parts, for data?
Where does the server run?
What should a data server allow?
| Allow | Be careful with |
|---|---|
| Reading schemas and the data dictionary | Write access of any kind |
| Read-only queries with a row limit | Queries without a limit on a big table |
| A sample of rows from a test database | Production data with personal information |
| Running saved, reviewed queries | Free-form SQL against the warehouse |
The safest setup uses a database login that can only read, so even a wrong tool call cannot change data.
Where can you check this?
- Model Context Protocol: What is MCP?
- Model Context Protocol specification: Server features, tools, resources and prompts
Where do you start?
Connect one to Claude Code with connect Claude Code to a database, or start with a public, read-only one: the Microsoft Learn MCP server.