Skip to main content

A simple SQLite MCP server

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 that can be enhanced with Claude's analysis when an Anthropic API key is provided.

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
    • Optional enhancement through Claude for professional formatting (requires Anthropic API key)

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 on the database
  • write-query: Execute INSERT, UPDATE, or DELETE queries
  • create-table: Create new database tables

Schema Tools

  • list-tables: Get a list of all tables in the database
  • describe-table: View the schema of a specific table

Analysis Tools

  • append-insight: Add new business insights to the memo resource

Installation

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

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.1.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

mcp_server_sqlite-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_sqlite-0.1.0.tar.gz
  • Upload date:
  • Size: 18.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 0630a91c81e24173a6ebb70822f02be08f9ccba3b36922b1cca6985c17edef10
MD5 26452462cc816c8cf27a15cc4f074750
BLAKE2b-256 472cfc8897f76f35bdea32f2b419322b402e2f10fef2a672851a40100d3801b3

See more details on using hashes here.

Provenance

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

Publisher: python.yml on modelcontextprotocol/servers

Attestations:

File details

Details for the file mcp_server_sqlite-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_sqlite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df4cecc793c64b01763d1337e9f4a4f7b822581ffb9f3300af24c9fc2c61f9fe
MD5 716ebd865058d38c44c41668b4e2d8ff
BLAKE2b-256 ee0b3b6ad71fdc2f577f4868ef277da5a6fa61b6b238874d51f9cf8adaa38bcc

See more details on using hashes here.

Provenance

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

Publisher: python.yml on modelcontextprotocol/servers

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page