{"id":26122109,"url":"https://github.com/evansims/openfga-mcp","last_synced_at":"2025-08-22T16:06:40.473Z","repository":{"id":281061625,"uuid":"944082464","full_name":"evansims/openfga-mcp","owner":"evansims","description":"Model Context Protocol server enabling querying and management of OpenFGA and Auth0 FGA authorization stores for automation, intelligent tooling, and natural language.","archived":false,"fork":false,"pushed_at":"2025-08-19T04:31:34.000Z","size":1829,"stargazers_count":10,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-19T06:23:29.401Z","etag":null,"topics":["authorization","automation","generative-ai","mcp","model-context-protocol","openfga"],"latest_commit_sha":null,"homepage":"https://openfga.dev","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evansims.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-06T18:55:02.000Z","updated_at":"2025-08-17T04:14:58.000Z","dependencies_parsed_at":"2025-03-06T19:36:31.331Z","dependency_job_id":"c352d561-3914-4209-be62-f82dacb0d864","html_url":"https://github.com/evansims/openfga-mcp","commit_stats":null,"previous_names":["evansims/openfga-mcp"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/evansims/openfga-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansims%2Fopenfga-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansims%2Fopenfga-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansims%2Fopenfga-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansims%2Fopenfga-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evansims","download_url":"https://codeload.github.com/evansims/openfga-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansims%2Fopenfga-mcp/sbom","scorecard":{"id":444658,"data":{"date":"2025-08-17T04:15:16Z","repo":{"name":"github.com/evansims/openfga-mcp","commit":"e73712f74570a7481d00c624f1a6e75fb94cc467"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: RenovateBot: renovate.json:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   2 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":5,"reason":"badge detected: Passing","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (21) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is required - but no codeowners file found in repo","Info: 'last push approval' is required to merge on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":10,"reason":"2 out of the last 2 releases have a total of 2 signed artifacts.","details":["Info: provenance for release artifact: openfga-mcp-v2.0.0.tar.gz.intoto.jsonl: https://github.com/evansims/openfga-mcp/releases/tag/v2.0.0","Info: provenance for release artifact: openfga-mcp-v1.0.0.tar.gz.intoto.jsonl: https://github.com/evansims/openfga-mcp/releases/tag/v1.0.0"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Contributors","score":10,"reason":"project has 6 contributing companies or organizations","details":["Info: found contributions from: auth0, auth0-samples, momentful, openfga, psr-discovery, psr-mock"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"21 out of 21 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-08-19T06:23:44.864Z","repository_id":281061625,"created_at":"2025-08-19T06:23:44.864Z","updated_at":"2025-08-19T06:23:44.864Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271665005,"owners_count":24799301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorization","automation","generative-ai","mcp","model-context-protocol","openfga"],"created_at":"2025-03-10T14:38:22.234Z","updated_at":"2025-08-22T16:06:40.464Z","avatar_url":"https://github.com/evansims.png","language":"PHP","funding_links":[],"categories":["Security","Task and Project Management","🌐 Web Development"],"sub_categories":["How to Submit"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\u003ca href=\"https://openfga.dev\"\u003e\u003cimg src=\".github/openfga.png\" width=\"100\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\n  \u003ch1\u003eOpenFGA MCP Server\u003c/h1\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://codecov.io/gh/evansims/openfga-mcp\" target=\"_blank\"\u003e\u003cimg src=\"https://codecov.io/gh/evansims/openfga-mcp/graph/badge.svg?token=DG6KWF1EG6\" alt=\"codecov\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://shepherd.dev/github/evansims/openfga-mcp\" target=\"_blank\"\u003e\u003cimg src=\"https://shepherd.dev/github/evansims/openfga-mcp/coverage.svg\" alt=\"Psalm Type Coverage\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.bestpractices.dev/projects/10901\"\u003e\u003cimg src=\"https://www.bestpractices.dev/projects/10901/badge\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003eAI-powered authorization management for OpenFGA\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\n\nConnect [OpenFGA](https://openfga.dev/) and [Auth0 FGA](https://auth0.com/fine-grained-authorization) to AI agents via the Model Context Protocol.\n\n## Use Cases\n\n- **Plan \u0026 Design** - Design efficient authorization model using best practice patterns\n- **Generate Code** - Generate accurate SDK integrations with comprehensive documentation context\n- **Manage Instances** - Query and control live OpenFGA servers through AI agents\n\n## Quick Start\n\n### Offline Mode (Default)\n\nDesign models and generate code without a server:\n\n```json\n{\n  \"mcpServers\": {\n    \"OpenFGA\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"--rm\",\n        \"-i\",\n        \"--pull=always\",\n        \"evansims/openfga-mcp:latest\"\n      ]\n    }\n  }\n}\n```\n\n### Online Mode\n\nConnect to OpenFGA for full management capabilities:\n\n```json\n{\n  \"mcpServers\": {\n    \"OpenFGA\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"--rm\",\n        \"-i\",\n        \"--pull=always\",\n        \"-e\",\n        \"OPENFGA_MCP_API_URL=http://host.docker.internal:8080\",\n        \"evansims/openfga-mcp:latest\"\n      ]\n    }\n  }\n}\n```\n\n\u003e **Safety:** Write operations are disabled by default. Set `OPENFGA_MCP_API_WRITEABLE=true` to enable.\n\n\u003e **Docker Networking:** For your `OPENFGA_MCP_API_URL` use `host.docker.internal` when running OpenFGA on your local machine, container names for Docker networks, or full URLs for remote instances.\n\nWorks with [Claude Desktop](https://claude.ai/download), [Claude Code](https://www.anthropic.com/claude-code), [Cursor](https://cursor.sh), [Windsurf](https://windsurf.com), [Zed](https://zed.dev), and other MCP clients.\n\n## Configuration\n\n### MCP Transport\n\n| Variable                          | Default     | Description                                                                     |\n| --------------------------------- | ----------- | ------------------------------------------------------------------------------- |\n| `OPENFGA_MCP_TRANSPORT`           | `stdio`     | Supports `stdio` or `http` (Streamable HTTP.)                                   |\n| `OPENFGA_MCP_TRANSPORT_HOST`      | `127.0.0.1` | IP to listen for connections on. Only applicable when using `http` transport.   |\n| `OPENFGA_MCP_TRANSPORT_PORT`      | `9090`      | Port to listen for connections on. Only applicable when using `http` transport. |\n| `OPENFGA_MCP_TRANSPORT_SSE`       | `true`      | Enables Server-Sent Events (SSE) streams for responses.                         |\n| `OPENFGA_MCP_TRANSPORT_STATELESS` | `false`     | Enables stateless mode for session-less clients.                                |\n\n### OpenFGA\n\n| Variable                    | Default | Description                                         |\n| --------------------------- | ------- | --------------------------------------------------- |\n| `OPENFGA_MCP_API_URL`       |         | OpenFGA server URL                                  |\n| `OPENFGA_MCP_API_WRITEABLE` | `false` | Enables write operations                            |\n| `OPENFGA_MCP_API_STORE`     |         | Default requests to a specific store ID             |\n| `OPENFGA_MCP_API_MODEL`     |         | Default requests to a specific model ID             |\n| `OPENFGA_MCP_API_RESTRICT`  | `false` | Restrict requests to configured default store/model |\n\n### OpenFGA Authentication\n\n| Authentication     | Variable                        | Default | Description   |\n| ------------------ | ------------------------------- | ------- | ------------- |\n| Pre-Shared Keys    | `OPENFGA_MCP_API_TOKEN`         |         | API Token     |\n| Client Credentials | `OPENFGA_MCP_API_CLIENT_ID`     |         | Client ID     |\n|                    | `OPENFGA_MCP_API_CLIENT_SECRET` |         | Client Secret |\n|                    | `OPENFGA_MCP_API_ISSUER`        |         | Token Issuer  |\n|                    | `OPENFGA_MCP_API_AUDIENCE`      |         | API Audience  |\n\nSee [`docker-compose.example.yml`](docker-compose.example.yml) for complete examples.\n\n## Features\n\n### Management Tools\n\n- **Stores**: Create, list, get, delete stores\n- **Models**: Create models with [DSL](https://openfga.dev/docs/configuration-language), list, get, verify\n- **Permissions**: Check, grant, revoke permissions; query users and objects\n\n### SDK Documentation\n\nComprehensive documentation for accurate code generation:\n\n- All OpenFGA SDKs (PHP, Go, Python, Java, .NET, JavaScript, Laravel)\n- Class and method documentation with code examples\n- Advanced search with language filtering\n\n### AI Prompts\n\n**Design \u0026 Planning**\n\n- Domain-specific model design\n- RBAC to ReBAC migration\n- Hierarchical relationships\n- Performance optimization\n\n**Implementation**\n\n- Step-by-step model creation\n- Relationship patterns\n- Test generation\n- Security patterns\n\n**Troubleshooting**\n\n- Permission debugging\n- Security audits\n- Least privilege implementation\n\n### Resources \u0026 URIs\n\n- `openfga://stores` - List stores\n- `openfga://store/{id}/model/{modelId}` - Model details\n- `openfga://docs/{sdk}/class/{className}` - SDK documentation\n- `openfga://docs/search/{query}` - Search documentation\n\n### Smart Completions\n\nAuto-completion for store IDs, model IDs, relations, users, and objects when connected.\n\n---\n\n- [Contributing](./.github/CONTRIBUTING.md) | [Apache 2.0 License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevansims%2Fopenfga-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevansims%2Fopenfga-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevansims%2Fopenfga-mcp/lists"}