About Databases_mcp_server
Databases_mcp_server is an MCP server for querying databases with natural-language requests. It supports SQLite, MySQL, PostgreSQL, and SQL Server.
Key features
- 01Natural-language database queries
- 02SQLite support
- 03MySQL support
- 04PostgreSQL support
- 05SQL Server support
Use cases
- 01Querying a database with natural language
- 02Connecting an MCP client to supported databases
MCP support
Exposes database query capabilities to MCP clients, accepting natural-language requests.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMECreated a MCP Server that connects to databases(currently sqlite, mysql, postgresql and sqlserver) and perform queries on them automatically with natural language.
Usage with VS Code
For Mysql
"mcp": {
"inputs": [],
"servers": {
"mysql": {
"command": "node",
"args": [
"absolute/path/to/index.js",
"--mysql",
"--host","host",
"--database","database",
"--user","user",
"--password","password",
]
}
}
}
For Sqlite
"mcp": {
"inputs": [],
"servers": {
"sqlite": {
"command": "node",
"args": [
"absolute/path/to/index.js",
"absolute/path/to/database.db",
]
}
}
}
For Postgresql
"mcp": {
"inputs": [],
"servers": {
"mysql": {
"command": "node",
"args": [
"absolute/path/to/index.js",
"--postgresql",
"--host","host",
"--database","database",
"--user","user",
"--password","password",
"--ssl","true",
]
}
}
}
For Sqlserver
"mcp": {
"inputs": [],
"servers": {
"mysql": {
"command": "node",
"args": [
"absolute/path/to/index.js",
"--sqlserver",
"--server","server",
"--database","database",
"--user","user",
"--password","password",
]
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.