Exograph
Build production-ready backends in minutes
What is Exograph?
Exograph is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to build production-ready backends in minutes
Build production-ready backends in minutes
This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Build production-ready backends in minutes
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx exographConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Exograph
Exograph is a declarative backend framework that generates flexible, secure, and performant GraphQL APIs from a concise data model definition, with built-in access control and cloud deployment support. It integrates with ecosystems like Next.js, Auth0, Clerk, and can be deployed to AWS Lambda, Cloudflare Workers, Fly.io, and Deno. Teams looking to build production-ready backends without hand-coding resolvers, auth middleware, or database migrations will find Exograph dramatically reduces boilerplate while maintaining full control over security policies.
Prerequisites
- Node.js 18+ or Deno runtime installed
- A PostgreSQL database (local or cloud-hosted)
- Exograph CLI installed (`npm install -g @exograph/cli` or via the getting started guide)
- An MCP-compatible client such as Claude Desktop
- Basic understanding of GraphQL schema concepts
Install the Exograph CLI
Install the Exograph CLI tool which provides project scaffolding, local development server, and deployment commands.
npm install -g @exograph/cliCreate a new Exograph project
Scaffold a new project with the init command. This creates an `exo` schema file where you declare your data model and access control rules.
exo new my-backend && cd my-backendDefine your data model
Edit the generated `.exo` schema file to declare your types, fields, and access control policies. Exograph automatically derives GraphQL queries, mutations, and subscriptions from this definition.
// src/index.exo
context AuthContext {
@jwt role: String
}
@postgres
module TodoModule {
@access(query: AuthContext.role == "user", mutation: AuthContext.role == "admin")
type Todo {
@pk id: Uuid = generate_uuid()
title: String
completed: Boolean = false
}
}Start the local development server
Launch the Exograph development server, which connects to your PostgreSQL database and starts the GraphQL endpoint with live reload.
EXO_POSTGRES_URL=postgresql://user:pass@localhost/mydb exo devConfigure Claude Desktop to use Exograph MCP
Add the Exograph server to your Claude Desktop config to enable natural language interaction with your backend schema and data.
{
"mcpServers": {
"exograph": {
"command": "npx",
"args": ["exograph"],
"env": {
"EXO_POSTGRES_URL": "postgresql://user:pass@localhost/mydb"
}
}
}
}Deploy to production
Use the Exograph CLI to deploy your backend to your chosen cloud target. The CLI handles schema migrations, environment configuration, and platform-specific packaging.
exo deploy --target flyExograph Examples
Client configuration
Claude Desktop configuration for Exograph, with the PostgreSQL connection string passed as an environment variable.
{
"mcpServers": {
"exograph": {
"command": "npx",
"args": ["exograph"],
"env": {
"EXO_POSTGRES_URL": "postgresql://user:password@localhost:5432/myapp"
}
}
}
}Prompts to try
Use Claude to explore, generate, and reason about your Exograph backend schema and GraphQL API.
- "Generate an Exograph schema for a blog with posts, authors, and comments with role-based access control"
- "Show me what GraphQL mutations are available for my Todo type"
- "Add a new field 'dueDate' of type DateTime to the Todo type with appropriate access rules"
- "Write a GraphQL query to fetch all incomplete todos assigned to the current user"
- "Help me add Auth0 JWT authentication to my Exograph backend"Troubleshooting Exograph
Database connection fails on `exo dev`
Verify that `EXO_POSTGRES_URL` uses the correct format: `postgresql://user:password@host:port/dbname`. Ensure PostgreSQL is running and the specified database exists. The user must have CREATE TABLE privileges for Exograph to apply migrations.
Access control rules are blocking expected queries
Check your `@access` annotations in the `.exo` schema. Ensure the JWT context is properly configured and that the token contains the expected claims matching your access expressions. Use `exo dev` with verbose logging to inspect auth decisions.
Deployment fails on Cloudflare Workers or AWS Lambda
Make sure to build the project with `exo build` before deploying to edge targets. Edge deployments require Exograph's WASM runtime — check that the target platform supports the required WASM size limits and environment variable configuration.
Frequently Asked Questions about Exograph
What is Exograph?
Exograph is a Model Context Protocol (MCP) server that build production-ready backends in minutes It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Exograph?
Follow the installation instructions on the Exograph GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Exograph?
Exograph works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Exograph free to use?
Yes, Exograph is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
Exograph Alternatives — Similar Databases Servers
Looking for alternatives to Exograph? Here are other popular databases servers you can use with Claude, Cursor, and VS Code.
Excelize
★ 20.6kGo language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
MCP Toolbox for Databases
★ 15.3kOpen source MCP server specializing in easy, fast, and secure tools for Databases.
DBHub
★ 2.8kA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.
Tabularis
★ 2.1kA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
Postgres AI Guide
★ 1.7kMCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
Anyquery
★ 1.7k🏎️ 🏠 ☁️ - Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
Browse More Databases MCP Servers
Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Exograph in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Exograph?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.