nocobase-mcp-server
Provides integration with Ant Design UI components within NocoBase's JS block sandbox, enabling AI assistants to render JSX interfaces using Ant Design's React components for building rich user interfaces.
Provides integration with React within NocoBase's JS block sandbox, enabling AI assistants to create and render React components for building dynamic user interfaces in flowPage blocks.
Enables dynamic tool generation from NocoBase's OpenAPI/Swagger specifications, automatically loading all API endpoints as tools when the API documentation plugin is enabled.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nocobase-mcp-serverlist all collections in my NocoBase instance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nocobase-mcp-server
An MCP (Model Context Protocol) server for NocoBase, enabling AI assistants like Claude to interact with your NocoBase instance — read collections, manage UI schemas, build flowPage blocks, and run dynamic API operations via OpenAPI.
Features
24 hand-crafted tools covering collections, UI schemas, desktop routes, flow models, and JS blocks
Dynamic tools auto-generated from your NocoBase's OpenAPI/Swagger spec (requires API documentation plugin)
Works with NocoBase v2.x (tested on
2.0.17-full)
Requirements
Node.js 18+
A running NocoBase instance
A NocoBase API token (root or sufficient permissions)
Installation
1. Clone and install dependencies
git clone https://github.com/your-username/nocobase-mcp-server.git
cd nocobase-mcp-server
pnpm install2. Configure Claude Code (or any MCP client)
Add to ~/.claude/mcp.json (Claude Code global MCP config):
{
"mcpServers": {
"nocobase": {
"type": "stdio",
"command": "/absolute/path/to/nocobase-mcp-server/node_modules/.bin/tsx",
"args": ["/absolute/path/to/nocobase-mcp-server/src/index.ts"],
"env": {
"NOCOBASE_URL": "http://localhost:13000",
"NOCOBASE_API_TOKEN": "your-api-token-here"
}
}
}
}Replace /absolute/path/to/nocobase-mcp-server with the actual path where you cloned the repo (e.g. /Users/yourname/Projects/nocobase-mcp-server).
Environment Variables
Variable | Required | Default | Description |
| Yes | — | NocoBase API token |
| No |
| NocoBase instance base URL |
Getting an API Token
In NocoBase UI: Settings → Plugins → enable the API keys plugin
Go to Settings → API keys → Add API key
Copy the generated token
Enabling Dynamic Tools (optional)
Enable the API documentation plugin in NocoBase (Settings → Plugins). Once active, the server will automatically load all additional API endpoints as tools on startup.
Tools Reference
Collections
Tool | Description |
| List all collections |
| Get a collection by name |
UI Schemas (Classic Pages)
Tool | Description |
| List all UI schema nodes |
| Get full nested UI schema tree by UID |
| Get direct child properties of a UI schema node |
| Get the parent schema of a node |
| Create a new root-level UI schema node |
| Create and insert a new UI schema node |
| Insert a schema node relative to a target node |
| Patch an existing UI schema node |
| Patch multiple UI schema nodes in one request |
| Remove a UI schema node and its descendants ⚠️ |
| Save a UI schema node as a reusable block template |
Desktop Routes / Navigation
Tool | Description |
| List all desktop routes (pages, menus, groups, tabs) |
Flow Models (flowPage blocks)
Tool | Description |
| Get a flowPage block by UID |
| Get a flowPage block by parent ID and subKey |
| Create or update a flowPage block |
| Attach a block to a flowPage container |
| Move a block to a different position |
| Deep-copy a block and auto-attach it |
| Delete a block and its children ⚠️ |
JS Blocks
Tool | Description |
| Get a JS block schema (classic page) |
| Update JS block code (classic page) |
| Update JS block code inside a flowPage — use |
⚠️ Destructive operations cannot be undone.
JS Block Sandbox
flowPage JS blocks run in NocoBase's sandbox. Available APIs:
// Render HTML
ctx.render(`<h1>Hello</h1>`);
// Render JSX with React + Ant Design
const { React, antd } = ctx.libs;
const { useState } = React;
const { Table, Tag } = antd;
function MyComponent() {
const [tab, setTab] = useState('a');
return <div>...</div>;
}
ctx.render(<MyComponent />);Contributing
Contributions are welcome! To add a new tool:
Fork the repo and create a feature branch
Add your tool in
src/index.tsusingserver.registerTool()Follow the existing pattern — use
nocoFetch()for API calls andok()to format responsesUpdate the tool list in
README.mdOpen a pull request
For bug reports or feature requests, open an issue on GitHub.
License
MIT — see LICENSE for details.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/puguhsudarma/nocobase-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server