Skip to main content

A simple SQLite MCP server

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

SQLite MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.

Components

Resources

The server exposes a single dynamic resource:

  • memo://insights: A continuously updated business insights memo that aggregates discovered insights during analysis
    • Auto-updates as new insights are discovered via the append-insight tool

Prompts

The server provides a demonstration prompt:

  • mcp-demo: Interactive prompt that guides users through database operations
    • Required argument: topic - The business domain to analyze
    • Generates appropriate database schemas and sample data
    • Guides users through analysis and insight generation
    • Integrates with the business insights memo

Tools

The server offers six core tools:

Query Tools

  • read-query

    • Execute SELECT queries to read data from the database
    • Input:
      • query (string): The SELECT SQL query to execute
    • Returns: Query results as array of objects
  • write-query

    • Execute INSERT, UPDATE, or DELETE queries
    • Input:
      • query (string): The SQL modification query
    • Returns: { affected_rows: number }
  • create-table

    • Create new tables in the database
    • Input:
      • query (string): CREATE TABLE SQL statement
    • Returns: Confirmation of table creation

Schema Tools

  • list-tables

    • Get a list of all tables in the database
    • No input required
    • Returns: Array of table names
  • describe-table

    • View schema information for a specific table
    • Input:
      • table_name (string): Name of table to describe
    • Returns: Array of column definitions with names and types

Analysis Tools

  • append-insight
    • Add new business insights to the memo resource
    • Input:
      • insight (string): Business insight discovered from data analysis
    • Returns: Confirmation of insight addition
    • Triggers update of memo://insights resource

Usage with Claude Desktop

# Add the server to your claude_desktop_config.json
"mcpServers": {
  "sqlite": {
    "command": "uv",
    "args": [
      "--directory",
      "parent_of_servers_repo/servers/src/sqlite",
      "run",
      "mcp-server-sqlite",
      "--db-path",
      "~/test.db"
    ]
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

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_sqlite-0.6.0.tar.gz (21.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_sqlite-0.6.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_sqlite-0.6.0.tar.gz.

File metadata

  • Download URL: mcp_server_sqlite-0.6.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mcp_server_sqlite-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0519e638f47ff43eee0898adb83d1e6a2bd26012b713ea7d9796b5a0d16c5fc1
MD5 245572569d6646b01d507b19c836772c
BLAKE2b-256 bcc012d6ac9c0f62878f0d128c5ac76a21a71600413d338ff35800a812c663e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_sqlite-0.6.0.tar.gz:

Publisher: python.yml on modelcontextprotocol/servers

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_sqlite-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_sqlite-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98c0653c6a088a26d23bf12016541e1971142fe3209d6169a33f2e5280f84dc0
MD5 b4815eedd6d8972604d8ca4f04ceb554
BLAKE2b-256 64b7e04f237b7a6d576e2d50c9aab150769e072b48c4a20aaa598a3aaf5da7f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_sqlite-0.6.0-py3-none-any.whl:

Publisher: python.yml on modelcontextprotocol/servers

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