Expose your nSelf backend to Claude Code, Cursor, and any MCP-compliant AI IDE with zero configuration. The MCP plugin publishes your schema, migrations, permissions, logs, plugin list, and environment introspection as JSON-RPC 2.0 tools — over both stdio and HTTP/SSE transports. Your AI assistant can inspect and operate your backend the moment you install it.
Requires nSelf v1.0.9+. Set your license key with nself license set nself_pro_... before installing.
nself license set nself_pro_...
nself plugin install mcp
nself build
nself startAdd to your ~/.claude/settings.json:
{
"mcpServers": {
"nself": {
"type": "http",
"url": "http://127.0.0.1:3825/mcp"
}
}
}Or use stdio transport for zero-network local development:
{
"mcpServers": {
"nself": {
"command": "nself",
"args": ["mcp", "stdio"]
}
}
}| Tool | Description |
|---|---|
nself_schema | Return the full Hasura GraphQL schema |
nself_migrations | List pending and applied migrations |
nself_permissions | Show Hasura role permission configuration |
nself_plugins | List installed plugins with version and health status |
nself_logs | Tail recent logs from any service (last N lines) |
nself_env | Inspect allowlisted environment variables (no secrets) |
nself_health | System health overview — all services and plugins |
| Variable | Required | Description |
|---|---|---|
PLUGIN_MCP_AUTH_TOKEN | No | Bearer token to protect the MCP endpoint. Recommended in production. |
PLUGIN_MCP_ENV_ALLOWLIST | No | Comma-separated env var names the nself_env tool may return |
PLUGIN_MCP_LOG_TAIL_LINES | No | Default number of log lines returned by nself_logs (default: 100) |
nself plugin remove mcpPort: 3825 | Category: Integrations | Language: Go | Requires: nSelf v1.0.9+ | Last Updated: April 2026 | Plugin Version 1.1.1