Back to MCP directory
publicPublicdnsLocal runtime

MCP-SQL

MCP服务器提供SQL数据库访问功能

article

README

🚀 mcp - sql

MCP 服务器允许客户端访问 SQL 数据库(支持 MySQL 和 PostgreSQL),为数据交互提供了便捷的方式。

🚀 快速开始

为了让该 MCP 服务器正常运行,请在您的 MCP 配置文件中添加以下配置:

{
  "mcpServers": {
    "sql_access": {
      "command": "uv",
      "args": [
        "--directory",
        "%USERPROFILE%/Documents/GitHub/mcp-sql",
        "run",
        "python",
        "main.py"
      ]
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client