Graphite logo

Graphite

Connects AI agents to Graphite’s saved databases for schema inspection, read queries, and approval-gated changes.

Install Graphite

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for graphite, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The graphite MCP server exposes Graphite’s saved database connections to external agents through a token-protected local service. Agents can list connections, inspect schemas and tables, describe table structures, review foreign-key relationships, and run SQL. Read operations use database-enforced read-only sessions, while other statements require approval in Graphite. Reach for it when an agent needs controlled access to databases managed in the Graphite desktop client.

Use cases

  • Inspect database schemas from an AI coding client
  • Run read-only SQL against saved connections
  • Review foreign-key relationships before writing queries
  • Approve agent-generated database changes in Graphite
  • Compare information across multiple configured databases

Key features

  • Local token-protected MCP endpoint
  • Connection, schema, and table discovery
  • Table descriptions and foreign-key summaries
  • Read-only SQL execution with database-enforced safeguards
  • Approval dialogs for write operations
  • Separate agent sessions and activity tracking

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.

How Graphite works

What graphite MCP server does

graphite exposes the database connections saved in the Graphite desktop application to external MCP-compatible agents. It gives agents a consistent way to discover available connections, inspect database structure, and work with data without requiring each agent to implement separate database drivers.

The available database coverage comes from Graphite, which supports relational systems such as PostgreSQL, MySQL, SQLite, SQL Server, Oracle, ClickHouse, DuckDB, Snowflake, BigQuery, and others, as well as MongoDB, Redis or Valkey, Cassandra or ScyllaDB, DynamoDB, and SurrealDB. The MCP interface operates on connections configured in Graphite rather than defining a separate connection configuration format.

How it works

Enable the external-agent server from Graphite’s AI and agents settings. Graphite displays configuration snippets that can be pasted into supported MCP clients. The service listens only on 127.0.0.1 and requires a token; it also rejects browser-style requests with an Origin header and requests using other Host headers.

Agents use their own database sessions and do not share an open transaction from the Graphite user interface. Supported operations include listing connections, enumerating schemas and tables, describing tables, obtaining a schema summary with foreign-key information, and executing SQL.

Read-oriented statements, including SELECT, WITH, EXPLAIN, and SHOW, run in a database-enforced read-only mode with a 30-second timeout and limited initial result fetching. Graphite checks for writes disguised as reads, such as data-changing CTEs or certain function calls.

Setup and configuration

  1. Install Graphite from its latest release for macOS, Windows, or Linux.
  2. Add and test the database connections that agents should use in Graphite.
  3. Open AI and agents → External agents and enable the MCP server.
  4. Copy the generated client configuration and provide the displayed token to the MCP client.

The token grants access to every saved connection, including read access, so it should be handled like a database credential. Regenerate it if it is exposed. The service is local to the machine running Graphite; remote agents are not described as a supported deployment model.

Tools and capabilities

The MCP interface supports these database operations:

  • List saved connections available through Graphite.
  • Browse schemas and tables.
  • Describe table structures.
  • Summarize schemas and foreign-key relationships.
  • Run SQL against a selected connection.

Statements that can modify data or schema open an approval dialog showing the requesting agent, selected connection, and statements to be executed. Approved scripts run in a transaction. Rejected scripts are not executed, and the agent receives the rejection result. Read-only connections continue to block writes.

Limitations and notes

The MCP server depends on Graphite’s desktop application and its saved connections. Database-specific behavior still applies: some supported systems are read-only in Graphite, while non-relational databases require approval for every command because they do not provide a dependable read-only mode for the application to enforce.

The MCP token is broad: anyone who obtains it can read every saved connection. Treat it as a secret rather than as a per-database permission. Agent activity is visible in Graphite under AI → Activity.

Graphite’s MCP access is intended for local clients such as Claude Code, Cursor, VS Code, and Claude Desktop through mcp-remote. The server’s local binding and host/origin checks are part of its access boundary.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Graphite

graphite is an MCP server that connects AI agents to databases saved in the Graphite desktop client. Its main tools list connections, inspect schemas and tables, describe table structures, summarize foreign keys, and run SQL. Reads use protected read-only sessions, while writes require approval in Graphite.

Install Graphite from its latest release, configure the database connections in the desktop app, then enable **AI and agents → External agents**. Graphite provides client configuration snippets and a token to use with the MCP client.

Yes, graphite supports Cursor through its external-agent MCP configuration. Enable the server in Graphite, copy the generated configuration into Cursor, and provide the required token.

Yes, but write-capable statements require approval in Graphite before execution. Read queries run in database-enforced read-only sessions, while approved scripts execute in a transaction; read-only connections continue to reject writes.

It is restricted to `127.0.0.1`, requires a token, rejects browser-origin requests and unexpected host headers, and records agent calls in Graphite. Anyone holding the token can read every saved connection, so the token should be treated like a password.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGraphite AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/graphite?style=directory)](https://allmcps.com/mcp/graphite)
HTML Embed
<a href="https://allmcps.com/mcp/graphite"><img src="https://allmcps.com/api/badge/graphite?style=directory" alt="Graphite on AllMCPs" /></a>