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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_database-0.1.3.tar.gz
  • Upload date:
  • Size: 5.8 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.3.tar.gz
Algorithm Hash digest
SHA256 e66537ae25830f948ec8188d8e237f0eb21f46745544ae6ebb16d150569a6d82
MD5 5b4fdf85223f95a46c66c29c88d8372c
BLAKE2b-256 53a7ed887da292f38ef6492bfe78c0e2cc9980a7675fc604e115ae22497e394c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_database-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76d88926e28b32e8a3ab987bf9c3d340b6c812f640ec0f0e194310df88edc928
MD5 deb05b54b927ea8479cb40fb54d584f9
BLAKE2b-256 e8f6390cbd0e6a091f595d3bdd4b8e96a17b5a58a5a47bda6af00579e405ee18

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