Skip to main content

将自然语言转化为sql语句

Project description

简介

将用户的问题转化为SQL语句,然后执行SQL语句,返回结果。

使用

{
    "mcpServers": {
        "nltosql_agent": {
            "command": "uvx",
            "args": ["mcp-server-database"],
            "env": {
                "model": "模型名称",
                "api_key": "模型api_key",
                "base_url": "模型调用地址",
                "database": "数据库类型",
                "host": "数据库地址",
                "port": "数据库端口",
                "user": "数据库用户名",
                "password": "数据库密码",
                "dbname": "数据库名称"
            }
        }
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_database-0.1.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_database-0.1.4-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_database-0.1.4.tar.gz.

File metadata

  • Download URL: mcp_server_database-0.1.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for mcp_server_database-0.1.4.tar.gz
Algorithm Hash digest
SHA256 93780ea5b5538fd60871ea1d721be1eb05407610bff7bcfda699ee1b402f3131
MD5 c4257886614650388ee74dccfb55dddc
BLAKE2b-256 94cfece24a1d0855bf2d6a81b1fe1bfe788a3d92410f74cc400302f888dd6311

See more details on using hashes here.

File details

Details for the file mcp_server_database-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_database-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c1289a7425c68eb65fd792edb204fc485c87d7503c7e2193304f4b333163e3
MD5 8c82806fe602c2b3a619e708b2e9ea90
BLAKE2b-256 585a1d5e1edcb15b3f766ddaaf85764f0071cf5d61b2322fe8ee06e7d312b31a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page