SQLite
STDIOMCP server for SQLite database querying and schema access with read-only mode support
MCP server for SQLite database querying and schema access with read-only mode support
A Model Context Protocol (MCP) server that provides tools and resources for querying SQLite databases. This server enables LLMs to interact with SQLite databases through a standardized protocol.
The server provides the following MCP tools:
execute_query: Execute SELECT queries against the SQLite databaseexecute_statement: Execute INSERT, UPDATE, or DELETE statements (only in read-write mode)list_tables: List all tables in the databasedescribe_table: Get schema information for a specific tableThe server provides the following MCP resources:
schema://tables: List of all tables in the databaseschema://table/{name}: Schema information for a specific tablego build -o sqlite-mcp .
./sqlite-mcp -db ./path/to/database.db
./sqlite-mcp [options] Options: -addr string Address to listen on (default ":8080") -db string Path to SQLite database file (default "./database.db") -help Show help message -read-write Whether to allow write operations on the database. When false, the server operates in read-only mode
MCP_PORT: Port to listen on (overrides -addr flag port)