OpenFGA MCP Server
An experimental Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to read, search, and manipulate OpenFGA stores. Unlocks authorization for agentic AI, and fine-grained vibe coding✨ for humans.
Requirements
- Python 3.12+
- An OpenFGA server
Features
Tools
check: Check if a user has a relation to an objectlist_objects: List objects of a type that a user has a relation tolist_relations: List relations for which a user has a relation to an objectlist_users: List users that have a given relationship with a given object
Resources
Prompts
Usage
We recommend running the server using UVX:
uvx openfga-mcp@latest
Configuration
The server accepts the following arguments:
--openfga_url: URL of your OpenFGA server--openfga_store: ID of the OpenFGA store the MCP server will use--openfga_model: ID of the OpenFGA authorization model the MCP server will use
For API token authentication:
--openfga_token: API token for use with your OpenFGA server
For Client Credentials authentication:
--openfga_client_id: Client ID for use with your OpenFGA server--openfga_client_secret: Client secret for use with your OpenFGA server--openfga_api_issuer: API issuer for use with your OpenFGA server--openfga_api_audience: API audience for use with your OpenFGA server
For example:
uvx openfga-mcp@latest \
--openfga_url="http://127.0.0.1:8000" \
--openfga_store="your-store-id" \
--openfga_model="your-model-id"
Using with Claude Desktop
To configure Claude to use this server, add the following to your Claude config:
{
"mcpServers": {
"openfga-mcp": {
"command": "uvx",
"args": [
"openfga-mcp@latest",
]
}
}
}
- You may need to specify the full path to your
uvxexecutable. Usewhich uvxto find it. - You must restart Claude after updating the configuration.
Using with Raycast
Using with Cursor
Using with Windsurf
Development
To setup your development environment, run:
uv sync
To run the development server:
uv run openfga-mcp
License
Apache 2.0
Metadata
Release files for openfga-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openfga_mcp-0.1.2.tar.gz | 102.7 kB | With provenance | Details for openfga_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openfga_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for openfga_mcp-0.1.2-py3-none-any.whl |
Total release size: 113.3 kB
Release files / openfga_mcp-0.1.2.tar.gz
| Download URL | openfga_mcp-0.1.2.tar.gz |
|---|---|
| Size | 102.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba1270be7b3deaf104ddb5892ae3f7952e9a68c8467bdb89a3aea8aac72674e3
|
|
BLAKE2b-256 checksum How to use checksums |
e31fe043c8b919baab366e81a06485ae67805c538dfd493a9dfaf30e65bd696f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2025.
Transparency logRelease files / openfga_mcp-0.1.2-py3-none-any.whl
| Download URL | openfga_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49db9a2b13a5de204b6f584d480290ca5c6c0a3b990a769a8b0f3b1f1745525a
|
|
BLAKE2b-256 checksum How to use checksums |
78952b747b35e7ece42906bbda7b5aab9fd3ef669f5b57f67b91156017c0d694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2025.
Transparency logSecurity for openfga-mcp 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for openfga_mcp-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.