OpenFGA MCP サーバー
大規模言語モデル(LLM)によるOpenFGAストアの読み取り、検索、操作を可能にする、実験的なモデルコンテキストプロトコル(MCP)サーバー。エージェント型AIの認証と、人間のためのきめ細かなバイブコーディング✨を実現します。
要件
- Python 3.12以上
- OpenFGAサーバー
特徴
ツール
店舗管理
create_store
: 新しいストアを作成します。( create-store )list_stores
: すべての店舗を一覧表示します。( list-stores )get_store
: 店舗の詳細を取得します。( get-store )delete_store
: ストアを削除します。( delete-store )get_store_id_by_name
: ストアの名前でストアの ID を取得します。
認可モデル管理
write_authorization_model
: 認可モデルを書き込みます。( write-authorization-model )read_authorization_models
: すべての認可モデルを一覧表示します。( read-authorization-models )get_authorization_model
: 特定のバージョンの認可モデルの詳細を取得します。( get-authorization-model )
リレーションシップタプル管理
write_relation_tuples
: リレーションタプルを書き込みます。 ( write-relation-tuples )read_relation_tuples
: リレーションタプルを読み取ります。 ( read-relation-tuples )
関係クエリ
check
: ユーザーがオブジェクトと関係があるかどうかを確認します。( check )list_objects
: ユーザーが関係するタイプのオブジェクトを一覧表示します。( list-objects )list_users
: 特定のオブジェクトと特定の関係を持つユーザーを一覧表示します。( list-users )
リソース
プロンプト
使用法
UVXを使用してサーバーを実行することをお勧めします。
Smithery経由でインストール
Smithery経由で Claude Desktop 用の OpenFGA MCP サーバーを自動的にインストールするには:
構成
サーバーは次の引数を受け入れます。
--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 オーディエンス
例えば:
Claude Desktopでの使用
Claude がサーバーを使用するように構成するには、Claude 構成に以下を追加します。
uvx
実行ファイルへのフルパスを指定する必要があるかもしれません。whichwhich uvx
を使って見つけてください。- 構成を更新した後、Claude を再起動する必要があります。
Raycastと併用する
カーソルの使用
Windsurfでの使用
発達
開発環境をセットアップするには、次のコマンドを実行します。
開発サーバーを実行するには:
MCP Inspector を使用して開発サーバーを実行するには:
ライセンス
アパッチ 2.0
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
大規模言語モデルが OpenFGA 認証ストアを読み取り、検索、操作できるようにし、エージェント AI と自然言語のやり取りのためのきめ細かなアクセス制御を可能にする実験的なモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityAlicense-qualityA server that enables Large Language Models to discover and interact with REST APIs defined by OpenAPI specifications through the Model Context Protocol.Last updated -37896TypeScriptMIT License
MCP TapData Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -- -securityAlicense-qualityA Model Context Protocol server that provides AI agents with secure access to local filesystem operations, enabling reading, writing, and managing files through a standardized interface.Last updated -1603TypeScriptApache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that connects Large Language Models to the GeoServer REST API, enabling AI assistants to query and manipulate geospatial data through natural language.Last updated -918PythonMIT License