Microsoft SQL Server
Query a Microsoft SQL Server database directly: list tables, describe columns and run read-only T-SQL. Supports SQL Server and Windows (NTLM) authentication. Installs read-only.
7-day free trial · No credit card · EU-hosted
Ask Microsoft anything
Try a real prompt against Microsoft SQL Server via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install Microsoft on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click Microsoft SQL Server in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for Microsoft
Step-by-step setup for the most popular AI clients.
Setting up Microsoft SQL Server
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
Setup
- Create a login and a database user with only
db_datareader:CREATE LOGIN amcp_reader WITH PASSWORD = 'change-me'; USE sales; CREATE USER amcp_reader FOR LOGIN amcp_reader; ALTER ROLE db_datareader ADD MEMBER amcp_reader; - Set
MSSQL_HOST,MSSQL_PORT(1433),MSSQL_DATABASE,MSSQL_USERandMSSQL_PASSWORD.
Windows authentication: set MSSQL_DOMAIN as well and the engine switches to NTLM instead of SQL Server auth. Leave it blank for a SQL login.
Named instances: a host of the SERVER\\INSTANCE form does not fit a URL. Give the instance's TCP port in MSSQL_PORT and the plain hostname in MSSQL_HOST — the SQL Browser resolves the name to that port anyway, and naming the port directly removes a moving part.
The default schema is dbo, so an unqualified name resolves there. Qualify (sales.orders) when the database uses more than one schema.
How a database connector behaves
- It installs read-only. The engine rejects anything that is not a read until you flip the switch in the connector's settings. That is a guard rail, not a security boundary: give the connection a database role that is itself read-only, and the guard rail never has to matter.
- Credentials live in the encrypted
authConfig, not in the connection string.MSSQL_USERandMSSQL_PASSWORDare stored encrypted and spliced into the DSN at call time; the host and database name are stored in the plaintextbaseUrlcolumn. - Results are capped at 1000 rows. A query that would return more comes back truncated with a flag. Aggregate in SQL rather than in the agent.
- A statement runs exactly as written. There is no query rewriting and no automatic LIMIT — an unbounded scan on a large table is a real unbounded scan on your production database. Say LIMIT.
Reachable from where?
- On AnythingMCP Cloud the server must accept connections from the public internet, which for a production database usually means it should not. Point the connector at a read replica, or self-host AnythingMCP inside the network.
- Self-hosted, add the host to
SSRF_ALLOWED_HOSTS: the outbound guard blocks private address space by default, and10.0.0.5is exactly the shape it is there to block.
Your AI is two clicks away from Microsoft SQL Server.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.