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.2.tar.gz (5.7 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.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_database-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 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.2.tar.gz
Algorithm Hash digest
SHA256 f4fe44ad4b193d4625c182d5205230d3588ed698456368613e313760bfcfd5e4
MD5 440c3e177781948fee5813971072bf33
BLAKE2b-256 79ab52b4481057d104121c13e0f5b02d8843bc0e5b8ac1e8e535ba2db9bc5419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_database-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8423c494e1067f15ff5203d2fe2e1a6435b9a6224264f6e2851e917bdba82316
MD5 248946ffd1978e03d189cd254c5bfaa1
BLAKE2b-256 1973b902d5f6acc8e91703dd9ff82b67351f33a87bb4683c1f817b3c5edb5b90

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