JUHE API Marketplace
isaacgounton avatar
MCP Server

SQLite MCP Server

A Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.

1
GitHub Stars
3/10/2026
Last Updated
MCP Server Configuration
1{
2 "name": "sqlite",
3 "command": "node",
4 "args": [
5 "/path/to/sqlite-mcp-server/build/index.js"
6 ]
7}
JSON7 lines
  1. Home
  2. MCP Servers
  3. sqlite-mcp-server

README Documentation

SQLite MCP Server

smithery badge

A Model Context Protocol (MCP) server that provides SQLite database operations. Supports both stdio (for Claude Desktop, Cursor, etc.) and Streamable HTTP (for remote clients) transports.

Features

  • In-memory or file-based SQLite database
  • Dual transport: stdio and Streamable HTTP
  • SQL operations with input validation and injection protection
  • Table management (CREATE, DROP, LIST, DESCRIBE)
  • Database schema exposed as an MCP resource
  • Business insights memo tracking
  • Docker support

Quick Start

Stdio (Claude Desktop, Cursor, etc.)

npm install && npm run build
node build/index.js

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "sqlite": {
      "command": "node",
      "args": ["/path/to/sqlite-mcp-server/build/index.js"]
    }
  }
}

With a file-based database:

{
  "mcpServers": {
    "sqlite": {
      "command": "node",
      "args": ["/path/to/sqlite-mcp-server/build/index.js", "/path/to/database.db"]
    }
  }
}

Streamable HTTP (remote clients)

node build/index.js --http

The server exposes a single endpoint at http://localhost:3000/mcp following the MCP Streamable HTTP specification.

Docker

docker build -t sqlite-mcp-server .
docker run -d -p 3000:3000 --name sqlite-mcp sqlite-mcp-server

Configuration

OptionDescriptionDefault
--httpUse Streamable HTTP transport instead of stdiostdio
First non-flag argumentPath to SQLite database file:memory:
SQLITE_DB_PATHDatabase path (env var alternative):memory:
PORTHTTP server port (HTTP mode only)3000

Examples:

# In-memory database on stdio
node build/index.js

# File-based database on stdio
node build/index.js ./data.db

# HTTP mode with custom port
PORT=8080 node build/index.js --http ./data.db

# Using environment variable
SQLITE_DB_PATH=./data.db node build/index.js --http

Available Tools

ToolDescription
read_queryExecute SELECT, WITH (CTE), or EXPLAIN queries
write_queryExecute INSERT, UPDATE, DELETE, or REPLACE queries
create_tableCreate a new table with a CREATE TABLE statement
drop_tableDrop a table (irreversible)
list_tablesList all user-created tables
describe_tableGet table schema: columns, indexes, and foreign keys
append_insightAdd a business insight to the memo resource

Resources

URIDescription
sqlite://{db}/schemaFull schema (CREATE statements) for all tables
memo://insightsAccumulated business insights from analysis

Prompts

NameDescription
mcp-demoGuided walkthrough: creates tables, inserts sample data, runs queries for a given topic

Remote Connection

Streamable HTTP

Connect any MCP-compatible client to http://your-host:3000/mcp. The server supports:

  • POST /mcp — send MCP messages (session created on initialize)
  • GET /mcp — SSE stream for session resumability
  • DELETE /mcp — terminate a session
  • GET /health — health check endpoint

Sessions are managed via the Mcp-Session-Id header.

Security

  • Query validation: each tool only accepts its intended SQL statement type
  • Multi-statement injection blocked (semicolons within queries are rejected)
  • Table names validated against ^[a-zA-Z_][a-zA-Z0-9_]*$
  • WAL mode and foreign keys enabled by default
  • DNS rebinding protection on HTTP transport

Development

npm install
npm run build
npm start          # stdio mode
npm run start:http # HTTP mode

License

ISC

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved