Use the MCP Server to:Documentation Index
Fetch the complete documentation index at: https://www.osohq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- develop a better understanding of your policy
- use natural language to ask authorization-related questions
- debug why an authorization decision does not match what you expect
Connect
Claude Desktop (DXT)
Don’t have the CLI installed or don’t want to manually add the configuration? No worries - download the following DXT file and double-click to automatically install the Oso MCP Server into Claude Desktop or other AI clients that accept DXTs.<0.33.0
The following installation methods assume you have already installed and set up the CLI (version >=0.33.0).
Cursor
Manual
In your LLM client of choice, add the following to your MCP config file to run it against a local dev server:- You may optionally omit the
OSO_URLenvironment variable or set it tohttps://cloud.osohq.comif you want to run it against a live production server. - The provided
OSO_AUTHtoken is for the local dev server. You can obtain your live serverOSO_AUTHtoken from the Oso Cloud UI.
Where can I find my MCP config file?
Here are guides for some common clients:Usage
Once you have your MCP server up and running, you can ask your LLM any authorization related questions and watch it use the tools available. Currently, we expose read tools to:- Get your policy
- Get all facts
- Run an
authorizequery - Query your facts with pattern matching
- Run policy tests
- Update your policy
- Add facts
- Delete facts
- Clear all data
- Draw a mermaid diagram of my authorization policy
- What permissions does
<actor>have on<resource>?- e.g. “What permissions does Alice have on Project XYZ?”
- Why doesn’t
<actor>have permission to<action><resource>?