OpenFGA MCP

by evansims
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Supports containerized deployment using Docker for running the OpenFGA MCP server in isolated environments

  • Allows installation from GitHub source repository as an alternative to package managers

  • Built using the OpenFGA Python SDK and MCP Python SDK, requiring Python 3.10+ for operation

OpenFGA MCP サーバー

大規模言語モデル(LLM)によるOpenFGAストアの読み取り、検索、操作を可能にする、実験的なモデルコンテキストプロトコル(MCP)サーバー。エージェント型AIの認証と、人間のためのきめ細かなバイブコーディング✨を実現します。

要件

特徴

ツール

店舗管理

  • create_store : 新しいストアを作成します。( create-store )
  • list_stores : すべての店舗を一覧表示します。( list-stores )
  • get_store : 店舗の詳細を取得します。( get-store )
  • delete_store : ストアを削除します。( delete-store )
  • get_store_id_by_name : ストアの名前でストアの ID を取得します。

認可モデル管理

リレーションシップタプル管理

関係クエリ

  • check : ユーザーがオブジェクトと関係があるかどうかを確認します。( check )
  • list_objects : ユーザーが関係するタイプのオブジェクトを一覧表示します。( list-objects )
  • list_users : 特定のオブジェクトと特定の関係を持つユーザーを一覧表示します。( list-users )

リソース

プロンプト

使用法

UVXを使用してサーバーを実行することをお勧めします。

uvx openfga-mcp@latest

Smithery経由でインストール

Smithery経由で Claude Desktop 用の OpenFGA MCP サーバーを自動的にインストールするには:

npx -y @smithery/cli install @evansims/openfga-mcp --client claude

構成

サーバーは次の引数を受け入れます。

  • --openfga_url : OpenFGA サーバーの URL
  • --openfga_store : MCP サーバーが使用する OpenFGA ストアの ID
  • --openfga_model : MCP サーバーが使用する OpenFGA 認証モデルの ID

APIトークン認証の場合:

  • --openfga_token : OpenFGA サーバーで使用する API トークン

クライアント資格情報認証の場合:

  • --openfga_client_id : OpenFGA サーバーで使用するクライアント ID
  • --openfga_client_secret : OpenFGA サーバーで使用するクライアント シークレット
  • --openfga_api_issuer : OpenFGA サーバーで使用する API 発行者
  • --openfga_api_audience : OpenFGA サーバーで使用する API オーディエンス

例えば:

uvx openfga-mcp@latest \ --openfga_url="http://127.0.0.1:8080" \ --openfga_store="your-store-id" \ --openfga_model="your-model-id"

Claude Desktopでの使用

Claude がサーバーを使用するように構成するには、Claude 構成に以下を追加します。

{ "mcpServers": { "openfga-mcp": { "command": "uvx", "args": ["openfga-mcp@latest"] } } }
  • uvx実行ファイルへのフルパスを指定する必要があるかもしれません。which which uvxを使って見つけてください。
  • 構成を更新した後、Claude を再起動する必要があります。

Raycastと併用する

カーソルの使用

Windsurfでの使用

発達

開発環境をセットアップするには、次のコマンドを実行します。

make setup

開発サーバーを実行するには:

make run \ --openfga_url="http://127.0.0.1:8080" \ --openfga_store="your-store-id" \ --openfga_model="your-model-id"

MCP Inspector を使用して開発サーバーを実行するには:

make dev

ライセンス

アパッチ 2.0

-
security - not tested
A
license - permissive license
-
quality - not tested

大規模言語モデルが OpenFGA 認証ストアを読み取り、検索、操作できるようにし、エージェント AI と自然言語のやり取りのためのきめ細かなアクセス制御を可能にする実験的なモデル コンテキスト プロトコル サーバー。

  1. Requirements
    1. Features
      1. Tools
      2. Resources
      3. Prompts
    2. Usage
      1. Installing via Smithery
      2. Configuration
      3. Using with Claude Desktop
      4. Using with Raycast
      5. Using with Cursor
      6. Using with Windsurf
    3. Development
      1. License
        ID: 5n8r5l5ir3