Labsco
evansims logo

OpenFGA

โ˜… 10

from evansims

An MCP server for managing authorization models with OpenFGA, an open-source authorization system.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

OpenFGA MCP Server

<a href="https://shepherd.dev/github/evansims/openfga-mcp" target="_blank"><img src="https://shepherd.dev/github/evansims/openfga-mcp/coverage.svg" alt="Psalm Type Coverage" /></a>
<a href="https://www.bestpractices.dev/projects/10901"><img src="https://www.bestpractices.dev/projects/10901/badge"></a>

AI-powered authorization management for OpenFGA


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

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 stores
  • openfga://store/{id}/model/{modelId} - Model details
  • openfga://docs/{sdk}/class/{className} - SDK documentation
  • openfga://docs/search/{query} - Search documentation

Smart Completions

Auto-completion for store IDs, model IDs, relations, users, and objects when connected.