What is OpenFGA MCP: LLM-Powered Data Access & Manipulation?
OpenFGA MCP is an experimental Model Context Protocol (MCP) server designed to empower Large Language Models (LLMs) with seamless access to OpenFGA stores. This integration enables LLMs to read, search, and manipulate authorization data, unlocking advanced capabilities like agentic AI decision-making and fine-grained permission management for developers. Built using the OpenFGA and MCP Python SDKs, it bridges the gap between human-readable policies and machine-executable access controls.
How to Use OpenFGA MCP: LLM-Powered Data Access & Manipulation?
Getting started is straightforward:
- Install via pip: Run `uv pip install openfga-mcp` for a quick setup.
- Launch the server: Execute `openfga-mcp-server --url "https://localhost:8000" --store "your-store-id"` or use Docker workflows with `make docker-run`.
- Connect your LLM app: Point your MCP client (e.g., Cursor, Windsurf) to the default endpoint http://localhost:8090.
Development workflows include interactive shells, REPLs, and automated testing via Makefile commands like `make test` or `make lint`.