ZenStack Auth Server
БесплатноНе проверенEnables auto-generated CRUD operations with authentication and authorization for database models defined in ZenStack schema.
Описание
Enables auto-generated CRUD operations with authentication and authorization for database models defined in ZenStack schema.
README
A Model Context Protocol (MCP) Streamable HTTP server supporting auto-generated CRUD tools of database with Authorization and credential Authentication.
Features
- MCP Streamable HTTP Protocol: Multiple simultaneous MCP server connections with credential Authentication support.
- ZenStack Integration: Automatically generates MCP tools for the CRUD operations of the models defined in the ZenStack schema. This demo will use a simple blog application with
UserandPostmodels.
Auto-generated Tools
The server automatically generates MCP tools for each model defined in the ZenStack schema. Here are the supported tools:
- findUnique
- findFirst
- findMany
- create
- createMany
- delete
- deleteMany
- update
- updateMany
- upsert
- aggregate
- groupBy
- count
You can opt-in available tools for functionNames variable in mcp-server.ts
Quick Start
Install dependencies:
npm installSet up the database:
npx zenstack generate npx prisma db pushSeed the database (optional):
npx prisma db seedIt create 3 users with posts. The passwords for all users are
password123.Start the server:
npm run dev
Testing the MCP Server
MCP Inspector
The easiest way to test the MCP server is to run
npx @modelcontextprotocol/inspector
MCP Client
If your chosen MCP client supports remote OAuth2 MCP server, you can directly connect. Otherwise, you can use mcp-remote to do it
All the most popular MCP clients (Claude Desktop, Cursor, Github Copilot) use the following config format:
{
"servers": {
"my-mcp-server": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3001/mcp"]
}
}
}
Troubleshooting
Clear your ~/.mcp-auth directory
If you encounter an invalid client error when connecting to the MCP server, it may be due to that mcp-remote only register oauth client for the first time.you can fix it by removing the cached client state:
rm -rf ~/.mcp-auth
Delete old versions of Node in NVM for Claude Desktop
When using Claude Desktop, if you didn't see any OAuth window open in your browser, it may be due to the fact that Claude Desktop is using an old version of Node.js even if you have a newer version installed. You can fix it by deleting old versions of Node.js in NVM.
Установка ZenStack Auth Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/jiashengguo/zenstack-mcp-authFAQ
ZenStack Auth Server MCP бесплатный?
Да, ZenStack Auth Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для ZenStack Auth Server?
Нет, ZenStack Auth Server работает без API-ключей и переменных окружения.
ZenStack Auth Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить ZenStack Auth Server в Claude Desktop, Claude Code или Cursor?
Открой ZenStack Auth Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare ZenStack Auth Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
