Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

libsql-context-server

MCP.Pizza Chef: nicholasq

The libsql-context-server is a Zed extension that integrates a Model Context Protocol (MCP) server for LibSQL databases. It connects the Zed AI assistant to a LibSQL MCP server, allowing the assistant to access and use prompts from the connected database as slash commands within the Assistant Panel. This extension requires an existing LibSQL MCP server, which communicates via standard input/output (stdio) transport and supports authentication tokens for secure database access. It is designed to enhance AI workflows by providing real-time, structured context from LibSQL databases directly into the Zed environment.

Use This MCP server To

Integrate LibSQL database context into Zed AI assistant Enable slash command prompts from LibSQL in Zed Connect Zed to external LibSQL MCP servers securely Use real-time LibSQL data for AI-assisted coding Enhance AI workflows with database-driven context

README

Libsql Context Server

This extension provides a connection to a Model Context Server for Libsql, for use with the Zed AI assistant. It will add prompts from the connected server as slash commands to the Assistant Panel.

Note: This extension does not install a libsql model context server. You will need to provide your own. Here is a link to one: Mcp Server LibSQL

This extension assumes you are using a Model Context Server in stdio transport. It also assumes that the Model Context Server receives these arguments: <libsql-url> --auth-token <your-libsql-db-token> (--auth-token is optional if database is local)

Configuration

Your Zed settings.json:

{
  "context_servers": {
    "libsql-context-server": {
      "settings": {
        "database_url": "libsql://db-name-user.turso.io",
        "server_path": "/path/to/libsql-server",
        "auth_token": "my_auth_token" // optional if running a local libsql instance
      }
    }
  }
}

Usage

Assuming you have Mcp Server LibSQL connected to this extension:

  • /libsql-schema <table-name>: Retrieve the schema for the table with the given name.
  • /libsql-schema all-tables: Retrieve the schemas for all tables in the database.
  • /libsql-query <table-name>: Retrieve all rows from the table with the given name(actually it only pulls max 500 rows for now).

libsql-context-server FAQ

Does libsql-context-server install the LibSQL MCP server?
No, you must provide your own LibSQL MCP server; this extension only connects Zed to it.
How does libsql-context-server communicate with the MCP server?
It uses the standard input/output (stdio) transport protocol for communication.
Is authentication required to connect to the LibSQL database?
Authentication via an auth-token is optional if the database is local but recommended for remote databases.
How do I configure the libsql-context-server in Zed?
You configure it in Zed's settings.json by specifying the database URL and server path along with optional auth tokens.
Can I use libsql-context-server with any LibSQL database?
Yes, as long as the database is accessible via the provided URL and the MCP server supports it.
What AI assistants or LLMs does this support?
While designed for Zed AI assistant, it can work with any LLM provider compatible with MCP, including OpenAI, Claude, and Gemini.
Where can I find a LibSQL MCP server to use with this extension?
A reference implementation is available at https://github.com/nicholasq/mcp-server-libsql.
Does this extension add new commands to Zed?
Yes, it adds slash command prompts from the connected LibSQL MCP server to the Assistant Panel.