Skip to main content

Model Context Protocol (MCP) server for OpenFGA

Project description

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

Features

Tools

  • check: Check if a user has a relation to an object
  • list_objects: List objects of a type that a user has a relation to
  • list_relations: List relations for which a user has a relation to an object
  • list_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 uvx executable. Use which uvx to 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openfga_mcp-0.1.2.tar.gz (102.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openfga_mcp-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file openfga_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: openfga_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 102.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for openfga_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ba1270be7b3deaf104ddb5892ae3f7952e9a68c8467bdb89a3aea8aac72674e3
MD5 47a0f2b12d47d98f6f9ad89bf282617a
BLAKE2b-256 e31fe043c8b919baab366e81a06485ae67805c538dfd493a9dfaf30e65bd696f

See more details on using hashes here.

Provenance

The following attestation bundles were made for openfga_mcp-0.1.2.tar.gz:

Publisher: publish.yml on evansims/openfga-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openfga_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: openfga_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for openfga_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49db9a2b13a5de204b6f584d480290ca5c6c0a3b990a769a8b0f3b1f1745525a
MD5 ce5ff245b77f777731890b4611779ab7
BLAKE2b-256 78952b747b35e7ece42906bbda7b5aab9fd3ef669f5b57f67b91156017c0d694

See more details on using hashes here.

Provenance

The following attestation bundles were made for openfga_mcp-0.1.2-py3-none-any.whl:

Publisher: publish.yml on evansims/openfga-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page