Connect OpenFGA and Auth0 FGA to AI agents via the Model Context Protocol.
Use Cases
Plan & Design - Design efficient authorization model using best practice patterns
Generate Code - Generate accurate SDK integrations with comprehensive documentation context
Manage Instances - Query and control live OpenFGA servers through AI agents
Related MCP server: MCP TapData Server
Quick Start
Offline Mode (Default)
Design models and generate code without a server:
Online Mode
Connect to OpenFGA for full management capabilities:
Safety: Write operations are disabled by default. Set
OPENFGA_MCP_API_WRITEABLE=trueto enable.
Docker Networking: For your
OPENFGA_MCP_API_URLusehost.docker.internalwhen running OpenFGA on your local machine, container names for Docker networks, or full URLs for remote instances.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and other MCP clients.
Configuration
MCP Transport
Variable | Default | Description |
|
| Supports
or
(Streamable HTTP.) |
|
| IP to listen for connections on. Only applicable when using
transport. |
|
| Port to listen for connections on. Only applicable when using
transport. |
|
| Enables Server-Sent Events (SSE) streams for responses. |
|
| Enables stateless mode for session-less clients. |
OpenFGA
Variable | Default | Description |
| OpenFGA server URL | |
|
| Enables write operations |
| Default requests to a specific store ID | |
| Default requests to a specific model ID | |
|
| Restrict requests to configured default store/model |
OpenFGA Authentication
Authentication | Variable | Default | Description |
Pre-Shared Keys |
| API Token | |
Client Credentials |
| Client ID | |
| Client Secret | ||
| Token Issuer | ||
| API Audience |
See docker-compose.example.yml for complete examples.
Features
Management Tools
Stores: Create, list, get, delete stores
Models: Create models with DSL, list, get, verify
Permissions: Check, grant, revoke permissions; query users and objects
SDK Documentation
Comprehensive documentation for accurate code generation:
All OpenFGA SDKs (PHP, Go, Python, Java, .NET, JavaScript, Laravel)
Class and method documentation with code examples
Advanced search with language filtering
AI Prompts
Design & Planning
Domain-specific model design
RBAC to ReBAC migration
Hierarchical relationships
Performance optimization
Implementation
Step-by-step model creation
Relationship patterns
Test generation
Security patterns
Troubleshooting
Permission debugging
Security audits
Least privilege implementation
Resources & URIs
openfga://stores- List storesopenfga://store/{id}/model/{modelId}- Model detailsopenfga://docs/{sdk}/class/{className}- SDK documentationopenfga://docs/search/{query}- Search documentation
Smart Completions
Auto-completion for store IDs, model IDs, relations, users, and objects when connected.