nocobase-mcp-setup
Installation
SKILL.md
Goal
Configure the NocoBase MCP connection for the user's coding agent CLI and verify that the server is reachable and authenticated.
Workflow
- Confirm which app endpoint should be used:
- Main app:
http(s)://<host>:<port>/api/mcp - Non-main app:
http(s)://<host>:<port>/api/__app/<app_name>/mcp
- Main app:
- Verify NocoBase is running and accessible.
- Determine the auth mode:
- API Key: require the
API Keysplugin and an existing API key - OAuth: require the
IdP: OAuthplugin
- API Key: require the
- Guide the user to add the NocoBase MCP server using the command for their CLI.
- Verify the MCP connection by checking the registered server and available tools.
Service Notes
- NocoBase MCP uses the
streamable HTTPtransport protocol. - NocoBase exposes:
- NocoBase core and plugin APIs
- A generic CRUD tool for operating on collections
MCP Configuration
Choose commands based on the user's CLI and auth mode.
Codex with API Key
export NOCOBASE_API_TOKEN=<your_api_key>
codex mcp add nocobase --url http://<host>:<port>/api/mcp --bearer-token-env-var NOCOBASE_API_TOKEN
Codex with OAuth
codex mcp add nocobase --url http://<host>:<port>/api/mcp
codex mcp login nocobase --scopes mcp,offline_access
Claude Code with API Key
claude mcp add --transport http nocobase http://<host>:<port>/api/mcp --header "Authorization: Bearer <your_api_key>"
Claude Code with OAuth
claude mcp add --transport http nocobase http://<host>:<port>/api/mcp
Then open Claude and complete login from the MCP panel:
claude
/mcp
Other CLIs
Use the same endpoint pattern and auth mode supported by the CLI.
Prerequisites
- NocoBase is installed and running
- The correct app endpoint is known
- For API Key auth:
API Keysplugin is enabled- an API key has been created
- For OAuth auth:
IdP: OAuthplugin is enabled
Verification
After configuration, verify that NocoBase MCP tools are available for NocoBase API operations such as collections and fields.
For Codex CLI, use:
codex mcp list
codex mcp get nocobase
For Claude Code, start Claude and inspect the MCP entry:
claude
/mcp