Skip to main content

MCP server for sqlseed - AI-powered SQLite test data generation

Project description

mcp-server-sqlseed

English | 中文

Model Context Protocol (MCP) server for sqlseed — enabling AI assistants to inspect schemas, generate configs, and fill SQLite databases.

Installation

# Basic
pip install mcp-server-sqlseed

# With AI support (includes sqlseed-ai)
pip install mcp-server-sqlseed[ai]

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:

{
  "mcpServers": {
    "sqlseed": {
      "command": "mcp-server-sqlseed"
    }
  }
}

Cursor / Other MCP Clients

Use command: mcp-server-sqlseed

MCP Tools

Tool Description
sqlseed_inspect_schema Inspect database schema: columns, foreign keys, indexes, sample data, schema_hash. Accepts optional table_name (all tables if omitted).
sqlseed_generate_yaml AI-driven YAML config generation with self-correction. Requires sqlseed-ai plugin and API key. Supports api_key/base_url/model parameter overrides.
sqlseed_execute_fill Execute data generation. Accepts optional yaml_config string, count, and enrich flag. Max YAML config size: 256KB.

MCP Resource

Resource Description
sqlseed://schema/{db_path}/{table_name} Read-only JSON schema for a specific table

Example Usage

After configuring your MCP client, you can prompt:

"Inspect the schema of app.db, generate a YAML config for the users table, then fill 1000 rows."

The AI assistant will call:

  1. sqlseed_inspect_schema → get table structure
  2. sqlseed_generate_yaml → generate YAML config (if sqlseed-ai is installed)
  3. sqlseed_execute_fill → fill data

AI Integration

When sqlseed-ai is installed and an API key is configured (SQLSEED_AI_API_KEY or OPENAI_API_KEY), the sqlseed_generate_yaml tool uses LLM-driven analysis with self-correction. Without the AI plugin, the tool returns a fallback message.

Requirements

  • Python >= 3.10
  • sqlseed >= 0.1.0
  • mcp >= 1.0

Optional:

  • sqlseed-ai (for sqlseed_generate_yaml tool)
  • google-generativeai (for Gemma 4 tools: sqlseed_gemma4_analyze, sqlseed_gemma4_agent_fill)

License

AGPL-3.0-or-later

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_sqlseed-0.2.1.tar.gz (7.0 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_sqlseed-0.2.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_sqlseed-0.2.1.tar.gz.

File metadata

  • Download URL: mcp_server_sqlseed-0.2.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_server_sqlseed-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1fe98d7d55c7c72bb9cece10af3fb6dd558133415540116736d798e813694888
MD5 a5088b9e69bc7afa4dd7e4a3e4177035
BLAKE2b-256 e7cdd3dc9866a6474d92bf1852a79bf3d7985f3f7b374ef215f7ff086af36435

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_sqlseed-0.2.1.tar.gz:

Publisher: publish.yml on sunbos/sqlseed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_sqlseed-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_sqlseed-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb9d5724c655f91367724ccb3f71e339febb26837d6eba542c34cd17a717696
MD5 51f067b633a5a7295349ab882bdd29a0
BLAKE2b-256 095da64c4d48e646e52d3f7ae6e082b0d7ec31564ea6ebceab649a159a77f816

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_sqlseed-0.2.1-py3-none-any.whl:

Publisher: publish.yml on sunbos/sqlseed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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