Go-based MCP server that wraps a SQLite database

Go-based MCP server that wraps a SQLite database

mcp-sqlite-cnosuke•bycnosuke

A Go MCP server that lets MCP clients run SQLite operations such as creating tables, describing schemas, listing tables, and executing read and write queries.

License: MIT License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Exposes MCP tools for SQLite operations including create_table, describe_table, list_tables, read_query, and write_query.
  • •Read queries return results in JSON format.
  • •Can run via a Docker image or a locally built Go binary.

BEST FOR

  • •Connecting MCP clients such as Claude Desktop to a SQLite database for querying and schema inspection.
  • •Running SQLite read and write operations through a volume-mounted database file.

ABOUT MCP-SQLITE-CNOSUKE

Go-based MCP server that wraps a SQLite database is cataloged as an MCP server attributed to cnosuke. A Go MCP server that lets MCP clients run SQLite operations such as creating tables, describing schemas, listing tables, and executing read and write queries. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Go-based MCP server that wraps a SQLite database are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which SQLite tools does the server expose to MCP clients?

It supports create_table, describe_table, list_tables, read_query, and write_query tools.

How is the SQLite database path configured?

The path is set in the YAML configuration under sqlite.path or via the SQLITE_PATH environment variable.

Upstream README

View this exact version on GitHub

README.md · 1c1f16f3f30f · Fetched 2026-11-13 13:57:25 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP SQLite Server

MCP SQLite Server is a Go-based MCP server implementation that wraps an SQLite database, allowing MCP clients (e.g., Claude Desktop) to interact with SQLite via a standardized JSON‑RPC protocol.

Features

  • MCP Compliance: Provides a JSON‑RPC based interface for tool execution according to the MCP specification.
  • SQLite Operations: Supports operations such as creating tables, describing table schemas, listing tables, and executing both read and write queries.

Requirements

  • Docker (recommended)

For local development:

  • Go 1.24 or later
  • SQLite (the database file will be created if it does not exist)
  • GCC and development tools (for CGO compilation)
docker pull cnosuke/mcp-sqlite:latest

# Run with default SQLite database
docker run -i --rm cnosuke/mcp-sqlite:latest

# Run with a mounted SQLite database
docker run -i --rm -v /path/to/your/db:/app/sqlite.db cnosuke/mcp-sqlite:latest

Using with Claude Desktop (Docker)

To integrate with Claude Desktop using Docker, add an entry to your claude_desktop_config.json file:

{
  "mcpServers": {
    "sqlite": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "cnosuke/mcp-sqlite:latest"]
    }
  }
}

For persistent storage with a volume mount:

{
  "mcpServers": {
    "sqlite": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-v", "/path/to/your/db:/app/sqlite.db", "cnosuke/mcp-sqlite:latest"]
    }
  }
}

Building and Running (Go Binary)

Alternatively, you can build and run the Go binary directly:

# Build the server
make bin/mcp-sqlite

# Run the server
./bin/mcp-sqlite server --config=config.yml

Using with Claude Desktop (Go Binary)

To integrate with Claude Desktop using the Go binary, add an entry to your claude_desktop_config.json file:

{
  "mcpServers": {
    "sqlite": {
      "command": "./bin/mcp-sqlite",
      "args": ["server", "--config", "config.yml"],
      "env": {
        "LOG_PATH": "",
        "SQLITE_PATH": "/path/to/your/sqlite.db"
      }
    }
  }
}

This configuration registers the MCP SQLite Server with Claude Desktop. By setting LOG_PATH to an empty string, the server will only output fatal errors, ensuring that non-critical logs do not interfere with the MCP protocol messages transmitted over stdio.

Configuration

The server is configured via a YAML file (default: config.yml). For example:

log: 'mcp-sqlite.log'
debug: false

sqlite:
  path: './sqlite.db'

Configuration options can also be specified via environment variables:

  • LOG_PATH: Path to log file (empty string disables file logging)
  • DEBUG: Enable debug logging (true/false)
  • SQLITE_PATH: Path to SQLite database file

Logging

Logs are directed to the file specified by the log config option or LOG_PATH environment variable. When this value is empty, only fatal errors will be output to stderr and all other logs are suppressed.

Important: When using the MCP server with a stdio transport, logging must not be directed to standard output because it would interfere with the MCP protocol communication. For Claude Desktop usage, it's recommended to set LOG_PATH to an empty string.

Note for Docker: The Docker image disables file logging by default, as container logs are typically collected from stdout/stderr.

MCP Server Usage

MCP clients interact with the server by sending JSON‑RPC requests to execute various tools. The following MCP tools are supported:

  • create_table: Executes a CREATE TABLE statement.
  • describe_table: Retrieves schema details for a specific table.
  • list_tables: Returns a list of all tables in the SQLite database.
  • read_query: Executes SELECT queries and returns the result in JSON format.
  • write_query: Executes write queries (such as INSERT, UPDATE, or DELETE).

Command-Line Parameters

When starting the server, you can specify various settings:

./bin/mcp-sqlite server [options]

Options:

  • --config, -c: Path to the configuration file (default: "config.yml").

Contributing

Contributions are welcome! Please fork the repository and submit pull requests for improvements or bug fixes. For major changes, open an issue first to discuss your ideas.

License

This project is licensed under the MIT License.

Author: cnosuke ( x.com/cnosuke )

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Go-based MCP server that wraps a SQLite database from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-sqlite-cnosuke)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage