SQLite MCP Server

by santos-404
Integrations
  • Enables execution of SQL queries against an SQLite database, with support for SELECT operations to retrieve and analyze data stored in the database.

SQLite MCP Server

A Model Context Protocol (MCP) server implementation using TypeScript for interacting with an SQLite database. This server provides an interactive interface for executing SQL queries, managing database schemas, and synthesizing business insights—all within an extensible protocol framework.

Not familiar with MCP? Check out the What is an MCP? section below.

Features

CommandDescriptionExample
list_tablesList all tables on the SQLite database-
read_queryExecute SELECT queries on the SQLite databaseSELECT * FROM users WHERE age > 18

Installation & Setup

git clone https://github.com/javsanmar5/mcp-server.sqlite.git cd mcp-server.sqlite

Since this hasn't been published as an npm package yet, we'll focus on the Docker installation method:

1. Build the Docker image

docker build -t mcp/sqlite .

2. Configure your AI client

Add the following to your AI client's configuration file:

"mcpServers": { "sqlite": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "mcp-test:/mcp", "mcp/sqlite", "--db-path", "test_db.sqlite3" ] } }

If you don't know what is that json file you might want to see the Client Configuration Guide.

3. Restart your AI client

After restarting, the MCP Tools should be available in your AI client's interface. On Windows, you may need to manually kill the process for the changes to take effect.

Documentation

What's an MCP?

Model Context Protocol (MCP) is a standardized way for AI models to interact with external tools and services. It allows AI assistants to perform actions like running database queries, accessing external APIs, or manipulating files through a defined protocol interface.

MCPs extend AI capabilities beyond conversation by providing structured access to tools and data sources without requiring direct integration into the AI model itself.

Tutorial: Setting up with Claude Desktop

Claude Desktop is one of many AI clients that support MCP servers. Here's how to set it up on Windows:

  1. Press Windows Key + R to open the Run dialog
  2. Type %appdata%\Claude and press Enter
  3. Create a new file called claude_desktop_config.json if it doesn't exist already
  4. Add the configuration from step 2 of the setup instructions above
  5. Save the file and restart Claude Desktop
  6. You should now see the SQLite tools available in your Claude interface

License

This project is licensed under the MIT License.

Contributing

This project was created primarily for learning purposes. However, if you'd like to contribute, feel free to submit a Pull Request and I'll review it.

Thanks for your interest!

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.

  1. Features
    1. Installation & Setup
      1. Build the Docker image
      2. Configure your AI client
      3. Restart your AI client
    2. Documentation
      1. What's an MCP?
      2. Tutorial: Setting up with Claude Desktop
    3. License
      1. Contributing

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.
          Last updated -
          10
          Python
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.
          Last updated -
          20
          Python
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.
          Last updated -
          6
          9
          TypeScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
          Last updated -
          1
          108
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/santos-404/mcp-server.sqlite'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server