Skip to main content

SQL Agent

io.github.Nachodusan/sql-agent

v0.2.0Updated Dec 5, 2026stdio · PyPI

Natural-language SQL that measures whether its answers are right, with a trace of every step

We earn commissions when you shop through the links below.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add sql-agent -e 'SQL_AGENT_DSN=<your-sql-agent-dsn>' -- uvx sql-agent-mcp==0.2.0

Configuration

4 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • SQL_AGENT_DSN
    Env var· required· secret
    Database connection string: sqlite:///./shop.db or postgresql://user:password@host:5432/db. Use a role that only has SELECT.
  • OPENAI_API_KEY
    Env var· optional· secret
    API key for the model behind the ask and evaluate tools. list_tables, describe_table and run_sql need no key.
  • OPENAI_BASE_URL
    Env var· optional
    Any OpenAI-compatible endpoint, for example https://api.deepinfra.com/v1/openai. Defaults to OpenAI itself.
  • SQL_AGENT_MODEL
    Env var· optional
    Model id to use, for example deepseek-ai/DeepSeek-V3.
We earn commissions when you shop through the links below.

Listed in the official MCP Registry since Dec 5, 2026. Mirrored daily; last checked Dec 5, 2026.