1. Conduid
  2. Data
  3. Sqlite MCP
MCP server · Data

Sqlite MCP

A SQLite extension that integrates the Model Context Protocol, enabling SQLite databases to connect to MCP servers and call their tools.

Unclaimed MIT aillmmcpsqlite
39Low

Scored 2 days ago · breakdown

About Sqlite MCP

Sqlite MCP is an MCP server published by sqliteai in the Data category: a SQLite extension that integrates the Model Context Protocol, enabling SQLite databases to connect to MCP servers and call their tools.

The repository has 23 stars and 7 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/sqliteai/sqlite-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Sqlite MCP

Powered by Claude · Grounded in docs

I know everything about Sqlite MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 17 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.

1 check has not been run yet.

Releases

0.1.90.1.9 · 7 Apr 2026Packages Flutter/Dart: `flutter pub add sqlite_mcp:0.1.9` or `dart pub add sqlite_mcp:0.1.9` Node: `npm install @sqliteai/sqlite-mcp` Android: `ai.sqlite:mcp:0.1.9` Swift: Installation Guide Installation macOS: wget…
0.1.80.1.8 · 7 Apr 2026Packages Flutter/Dart: `flutter pub add sqlite_mcp:0.1.8` or `dart pub add sqlite_mcp:0.1.8` Node: `npm install @sqliteai/sqlite-mcp` Android: `ai.sqlite:mcp:0.1.8` Swift: Installation Guide Installation macOS: wget…
0.1.70.1.7 · 1 Apr 2026Packages Flutter/Dart: `flutter pub add sqlite_mcp:0.1.7` or `dart pub add sqlite_mcp:0.1.7` Node: `npm install @sqliteai/sqlite-mcp` Android: `ai.sqlite:mcp:0.1.7` Swift: Installation Guide Installation macOS: wget…
0.1.60.1.6 · 11 Mar 2026Packages Flutter/Dart: `flutter pub add sqlite_mcp:0.1.6` or `dart pub add sqlite_mcp:0.1.6` Node: `npm install @sqliteai/sqlite-mcp` Android: `ai.sqlite:mcp:0.1.6` Swift: Installation Guide Installation macOS: wget…
0.1.50.1.5 · 11 Feb 2026Packages Flutter/Dart: `flutter pub add sqlite_mcp:0.1.5` or `dart pub add sqlite_mcp:0.1.5` Node: `npm install @sqliteai/sqlite-mcp` Android: `ai.sqlite:mcp:0.1.5` Swift: Installation Guide Installation macOS: wget…

README

Want managed MCP infrastructure? SQLite-MCP connects to any MCP server locally; SQLite Cloud includes a built-in MCP server, edge functions, and auth — so you can expose your data as an MCP target. Free tier available.


SQLite MCP

A SQLite extension that integrates the Model Context Protocol (MCP) Rust SDK, enabling SQLite databases to connect to MCP servers and call their tools.

🚀 Quick Start

Installation

Pre-built Binaries

Download for your platform: macOS, Linux, Windows, Android, and iOS.

Flutter Package

Add the sqlite_mcp package to your project:

flutter pub add sqlite_mcp  # Flutter projects
dart pub add sqlite_mcp     # Dart projects

Usage with sqlite3 package:

import 'package:sqlite3/sqlite3.dart';
import 'package:sqlite_mcp/sqlite_mcp.dart';

sqlite3.loadSqliteMcpExtension();
final db = sqlite3.openInMemory();
print(db.select('SELECT mcp_version()'));

For a complete example, see the Flutter example.

Basic Usage

-- Load the extension
.load ./dist/mcp.dylib

-- Check version
SELECT mcp_version();
-- 0.1.0

-- Connect to an MCP server
SELECT mcp_connect('http://localhost:8000/mcp');
-- {"status": "connected", "transport": "streamable_http"}

-- List available tools
SELECT mcp_list_tools_json();
-- Returns JSON with tool schemas

-- Call a tool
SELECT mcp_call_tool_json('airbnb_search', '{"location": "Rome", "maxPrice": 100}');
-- Returns search results

📖 API Reference

Available Functions

Function Description
mcp_version() Returns extension version
mcp_connect(url, [headers], [sse]) Connect to MCP server with optional custom headers
mcp_list_tools_json() List available tools with schemas
mcp_call_tool_json(name, args) Call a tool on the MCP server
mcp_list_tools_respond Virtual table (cached) that returns each tool as a row with structured columns
mcp_call_tool_respond(name, args) Virtual table that extracts text results from tool calls
mcp_list_tools Streaming virtual table that returns tools as they arrive
mcp_call_tool(name, args) Streaming virtual table for real-time tool results

See API.md for complete API documentation with examples.

🏗️ Building from Source

Requirements

  • Rust: 1.85+ toolchain
  • C Compiler: gcc or clang
  • Make: GNU Make

Build Instructions

# Clone the repository
git clone https://github.com/sqliteai/sqlite-mcp.git
cd sqlite-mcp

# Initialize submodules
git submodule update --init --recursive

# Build the extension
make

The compiled extension will be in dist/mcp.{dylib,so,dll}.

🔧 Transport Protocols

The extension supports two MCP transport protocols:

Streamable HTTP (Default)

Modern streaming HTTP transport for MCP servers.

SELECT mcp_connect('http://localhost:8000/mcp');

SSE (Legacy)

Server-Sent Events for compatibility with older servers.

SELECT mcp_connect('http://localhost:8931/sse', 1);

🚦 Quick Usage Example

#include <sqlite3.h>
#include <stdio.h>

int main() {
    sqlite3 *db;
    sqlite3_open(":memory:", &db);
    sqlite3_enable_load_extension(db, 1);
    sqlite3_load_extension(db, "./dist/mcp", NULL, NULL);

    sqlite3_stmt *stmt;

    // Connect to MCP
    sqlite3_prepare_v2(db,
        "SELECT mcp_connect('http://localhost:8000/mcp')",
        -1, &stmt, NULL);
    sqlite3_step(stmt);
    printf("Connected: %s\n", sqlite3_column_text(stmt, 0));
    sqlite3_finalize(stmt);

    // Call tool
    sqlite3_prepare_v2(db,
        "SELECT mcp_call_tool_json('airbnb_search', '{\"location\": \"NYC\"}')",
        -1, &stmt, NULL);
    if (sqlite3_step(stmt) == SQLITE_ROW) {
        printf("Result: %s\n", sqlite3_column_text(stmt, 0));
    }
    sqlite3_finalize(stmt);

    sqlite3_close(db);
    return 0;
}

See USAGE.md for complete usage examples.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


📄 License

MIT License - See LICENSE for details


☁️ Hosted version

Want to expose your database as an MCP target? SQLite Cloud includes a built-in MCP server, REST APIs, auth, and edge functions — so any MCP-compatible agent (Claude, Cursor, custom clients) can read and write your data securely.

Start free →


Part of the SQLite AI stack

SQLite-MCP is one piece of a larger ecosystem that turns SQLite into a runtime for intelligent, distributed data:

Data layer

AI layer

  • sqlite-ai — On-device LLM inference and embeddings
  • sqlite-agent — Autonomous AI agents running inside SQLite
  • sqlite-memory — Persistent, searchable memory for agents
  • sqlite-mcp — Call MCP tools directly from SQL queries (you are here)

Managed platform

Built by SQLite AI. Questions? Open a discussion or contact us.

README fetched from the repository 17 hours ago. The original is authoritative.

Questions

About Sqlite MCP

How do I install Sqlite MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Sqlite MCP safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 3 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Sqlite MCP still maintained?

Yes — the last commit was 5 months ago. The repository has 23 stars and 7 forks and 1 open issues.