jazz-mcp-server
The Jazz MCP Server is a Model Context Protocol server designed to integrate AI assistants with apps built on the Jazz framework. It supports data management, syncing between devices, and user authentication, enhancing AI interaction with local-first apps.
Jazz MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with local-first apps built with the Jazz framework.
What is this?
The Jazz MCP Server allows AI assistants like Claude, ChatGPT, and others to:
- Create, read, update, and delete data in Jazz applications
- Sync data between devices using Jazz's distributed state capabilities
- Manage authentication and user profiles
- Work with rich text, media, and other data types supported by Jazz
Prerequisites
- Node.js 22.x or higher
- npm or pnpm
- A Jazz application to connect to (or create one with
npx create-jazz-app@latest
)
Installation
-
Clone this repository:
git clone https://github.com/bensleveritt/jazz-mcp-server.git cd jazz-mcp-server
-
Install dependencies:
npm install # or with pnpm pnpm install
-
Copy the environment example file and configure it for your needs:
cp .env.example .env
-
Build the server:
npm run build # or with pnpm pnpm build
Usage
Start the MCP server:
npm start
# or with pnpm
pnpm start
For development with auto-restart:
npm run dev
# or with pnpm
pnpm dev
Connecting AI Assistants
The server exposes an MCP-compatible API at http://localhost:3000
(or your configured host/port).
In Cursor
- Open a project in Cursor
- Click on the Cursor AI settings
- Add a custom MCP server with the URL
http://localhost:3000
- Use the API key configured in your
.env
file (if auth is enabled)
In Other AI Assistants
Follow the relevant documentation for your AI assistant to connect to an MCP server at the URL http://localhost:3000
.
Available Tools
This MCP server provides the following tools for AI assistants:
jazz.listApps
- List available Jazz applicationsjazz.getAppData
- Get data from a Jazz applicationjazz.updateAppData
- Update data in a Jazz applicationjazz.createAppData
- Create new data in a Jazz applicationjazz.deleteAppData
- Delete data from a Jazz applicationjazz.auth.createUser
- Create a new userjazz.auth.login
- Log in an existing user
Development
The server is built with TypeScript and uses the official MCP protocol implementation.
Key files:
src/index.ts
- Main entry pointsrc/config.ts
- Configuration loadingsrc/server.ts
- MCP server implementationsrc/tools/
- Individual tool implementationssrc/jazz/
- Jazz integration
License
MIT