MCP Server NocoBase Remote
Remote MCP server that auto-generates tools from NocoBase OpenAPI specs to enable full CRUD operations on collections across multiple instances. Supports streamable HTTP transport and API key authentication for secure, natural language interaction with NocoBase deployments.
README
MCP Server NocoBase Remote
Remote MCP server for NocoBase instances with multi-instance support. Designed to be deployed on Easypanel or any container platform.
Features
- Streamable HTTP transport - Remote MCP access via HTTP
- Multi-instance support - Connect to multiple NocoBase instances from a single server
- Easypanel ready - Docker image with health checks
- API Key authentication - Secure connection to NocoBase instances
- Auto-generated tools - Converts NocoBase OpenAPI spec into MCP tools automatically
Quick Start
Local Development
npm install
cp .env.example .env
# Edit .env with your NocoBase URL and token
npm run dev
Build and Run
npm run build
npm start
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
PORT |
No | Server port (default: 3000) |
NOCOBASE_URL |
Yes* | URL of the NocoBase instance |
NOCOBASE_TOKEN |
Yes* | API Key for the NocoBase instance |
INSTANCE_NAME |
No | Name for the default instance (default: default) |
INSTANCE_PACKAGES |
No | Override MCP packages for default instance |
MCP_PACKAGES |
No | Comma-separated list of packages to expose |
INSTANCES |
No | JSON array of additional instances |
*Required if INSTANCES is not set
Single Instance
NOCOBASE_URL=http://nocobase:13000
NOCOBASE_TOKEN=your-api-key
Multiple Instances
NOCOBASE_URL=http://nocobase-main:13000
NOCOBASE_TOKEN=main-key
INSTANCES=[{"name":"crm","url":"http://nocobase-crm:13000","token":"crm-key"},{"name":"erp","url":"http://nocobase-erp:13000","token":"erp-key"}]
Docker / Easypanel
Build Image
docker build -t mcp-server-nocobase-remote .
Run Container
docker run -d \
-p 3000:3000 \
-e NOCOBASE_URL=http://nocobase:13000 \
-e NOCOBASE_TOKEN=your-api-key \
--name mcp-nocobase \
mcp-server-nocobase-remote
Easypanel Deployment
- Create a new service from Dockerfile
- Point to this repository
- Add environment variables:
NOCOBASE_URL- URL of your NocoBase instanceNOCOBASE_TOKEN- API Key from NocoBase
- Deploy
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/mcp |
POST/GET/DELETE | MCP streamable HTTP endpoint |
/health |
GET | Health check |
/instances |
GET | List configured instances |
Client Configuration
OpenCode
{
"mcp": {
"nocobase": {
"type": "remote",
"url": "http://your-server:3000/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer <your-api-key>"
}
}
}
}
Claude Code
claude mcp add --transport http nocobase http://your-server:3000/mcp
Codex CLI
codex mcp add nocobase --url http://your-server:3000/mcp
How It Works
- Server loads NocoBase instances from environment variables
- Each instance connects to NocoBase and fetches the OpenAPI/Swagger spec
openapi2mcptoolsconverts the API spec into MCP tools- Tools are prefixed with instance name (e.g.,
crm_collections_list) - Clients connect via streamable HTTP to
/mcpendpoint - MCP tools allow full CRUD operations on NocoBase collections
NocoBase Setup
- Enable the NocoBase MCP Server plugin
- Enable the API Keys plugin
- Create an API key in Settings -> API keys
- Use the URL and token in this server's configuration
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。