LibSQL Model Context Protocol Server
The LibSQL Model Context Protocol Server is a server application designed tointerface with LibSQL databases, providing schema information and enabling tablequeries. Built using Deno 2.1, this server leverages the Model Context Protocol(MCP) to handle various requests such as listing resources, reading resourceschemas, completing prompts, and executing SQL queries. It supports bothauthenticated and unauthenticated access to LibSQL databases, ensuringflexibility and security. This project is ideal for developers looking tointegrate LibSQL database functionalities into their applications seamlessly.
Requirements
- Deno 2.1+
- A LibSQL database URL
Usage
Install deno (macos/linux):
curl -fsSL https://deno.land/install.sh | sh
Build the binary:
deno run build
Run the server:
# If accessing a local libsql db that does not require auth
./mcp-server-libsql <database-url>
# With Auth
./mcp-server-libsql --auth-token <token> <database-url>