Oso Cloud MCP Server
Understand, develop, and debug authorization policies in Oso Cloud.
Coding agents are everywhere. See what yours are doing →
Local Development
Oso MCP Server
Use the MCP Server to:
- 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
This guide assumes you have already installed and set up the CLI.
Connect
In your LLM client of choice, add the following to your MCP config file to run it against a local dev server:
{
"mcpServers": {
"oso": {
"command": "oso-cloud",
"args": ["experimental", "mcp"],
"env": {
"OSO_URL": "http://localhost:8080",
"OSO_AUTH": "e_0123456789_12345_osotesttoken01xiIn"
}
}
}
}
- 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:
- Claude Desktop
- Cursor
- VS Code Copilot
- Kiro
Usage
This server is primarily intended for use with dev servers to aid in development. Please use extra caution when using against a live environment.
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 We also expose the following write tools, restricted for use only with local dev servers:
- Update your policy
- Add facts
- Delete facts
- Clear all data Try sending any of the following messages:
- 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>?
Feedback
We are actively iterating on developer experience and would appreciate all feedback on the Oso MCP Server and the broader development experience with Oso Cloud. Please do not hesitate to reach out on Slack!
Was this page helpful?
YesNo
Oso Migrate (Beta)
Overview of Polar Language and Syntax
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Universal Crypto MCP
Enable AI agents to interact with any EVM blockchain through natural language.
MCP Sequence Simulation Server
Simulate DNA and amino acid sequences using evolutionary models and algorithms.
GitHub Issue Reproduction MCP Server
An intelligent MCP server that automates the reproduction of GitHub issues for AWS CDK projects.
Lokalise MCP Tool
Add translation keys to Lokalise projects. Requires a Lokalise API key.
IdeaJarvis
IdeaJarvis is an idea workspace for product builders. Use AI to structure brainstorming into detailed PRDs, conduct comprehensive market research, build prototypes, and gather real community feedback—turning "what if" into "ready to launch.
Claude Code MCP
Orchestrates multiple Claude Code agents across iTerm2 sessions, providing centralized management and inter-agent communication.
AI pair programming
Orchestrates a dual-AI engineering loop where a Primary AI plans and implements, while a Review AI validates and reviews, with continuous feedback for optimal code quality. Supports custom AI pairing (Claude, Codex, Gemini, etc.)
Behavioural Prediction MCP
The Behavioural Prediction MCP Server provides AI-powered tools to analyze wallet behaviour prediction,fraud detection and rug pull prediction.
Template MCP Server
A CLI template for quickly bootstrapping an MCP server with FastMCP, supporting both stdio and HTTP transport.
MCP Config Generator
A web tool for safely adding MCP servers to your Claude Desktop configuration.