About ophir
ophir is an MCP server for AI agents to find AI service providers, negotiate terms, and manage agreements through the Ophir protocol. It also supports SLA monitoring and disputes.
Key features
- 01Discover providers, prices, and reputation
- 02Request and rank quotes from providers
- 03Accept quotes and create signed agreements
- 04Review agreements and SLA status
- 05File SLA disputes with cryptographic evidence
Use cases
- 01Find inference providers above a reputation threshold
- 02Negotiate service pricing within a per-request budget
- 03Check agreements against SLA targets
- 04Dispute latency violations
MCP support
The MCP server exposes Ophir tools for provider discovery, quote negotiation and acceptance, agreement checks, and SLA disputes. It connects to the public Ophir registry.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
7Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | No | Service category to filter by (e.g. "inference", "translation", "code_review"). Omit to list all providers. |
| min_reputation | number | No | Minimum reputation score (0-100) to filter sellers. Only providers at or above this score are returned. |
Details
From the project README@ophirai/mcp-server
MCP server that gives your AI agent the ability to discover, negotiate with, and manage AI service providers through the Ophir protocol.
No API keys required — connects to the public Ophir registry.
Installation
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"ophir": {
"command": "npx",
"args": ["@ophirai/mcp-server"]
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"ophir": {
"command": "npx",
"args": ["@ophirai/mcp-server"]
}
}
Windsurf
Add to your Windsurf MCP config:
{
"mcpServers": {
"ophir": {
"command": "npx",
"args": ["@ophirai/mcp-server"]
}
}
}
Cline
Add to your Cline MCP settings:
{
"mcpServers": {
"ophir": {
"command": "npx",
"args": ["@ophirai/mcp-server"]
}
}
}
Any MCP client (npx)
npx @ophirai/mcp-server
Smithery
smithery install ophir-negotiate
Configuration
| Environment Variable | Description | Default |
|---|---|---|
OPHIR_REGISTRY_URL | Ophir registry endpoint | https://registry.ophir.ai/v1 |
OPHIR_SELLERS | Comma-separated seller endpoints | Auto-discovered |
OPHIR_BUYER_ENDPOINT | Local buyer agent endpoint | http://localhost:3001 |
What can it do?
ophir_discover — Find providers
"Find me inference providers with a reputation score above 80."
Returns a list of providers with their services, pricing, and reputation scores:
{
"providers": [
{
"agent_id": "provider-abc",
"endpoint": "https://provider-abc.ophir.ai",
"services": [{ "category": "inference", "base_price": "0.002", "currency": "USDC", "unit": "request" }],
"reputation": { "score": 92, "total_agreements": 1847 }
}
],
"total": 3
}
ophir_negotiate — Full negotiation flow
"Negotiate inference service with a max budget of 0.005 USDC per request."
Sends an RFQ to all matching providers, collects quotes, ranks them, and returns the best option:
{
"best_quote": {
"seller": "provider-abc",
"price": "0.0018",
"currency": "USDC",
"unit": "request",
"sla": [
{ "metric": "latency_p99", "target": "500ms" },
{ "metric": "uptime", "target": "99.9%" }
]
},
"total_quotes": 5,
"rfq_id": "rfq_01HXYZ..."
}
ophir_accept_quote — Accept a quote
"Accept quote qt_abc123 from RFQ rfq_01HXYZ."
Creates a signed agreement with the selected provider, locking in the negotiated terms.
ophir_check_agreement — Monitor SLA compliance
"Check if agreement agr_xyz is meeting its SLA targets."
Returns current SLA metric observations and compliance status:
{
"agreement_id": "agr_xyz",
"sla_metrics": [
{ "name": "latency_p99", "target": "500ms", "comparison": "lte" },
{ "name": "uptime", "target": "99.9%", "comparison": "gte" }
],
"compliance_status": "monitoring_available"
}
ophir_list_agreements — View active agreements
"Show me all my active provider agreements."
Lists all agreements with their pricing, status, and SLA terms.
ophir_dispute — File an SLA dispute
"File a dispute against agreement agr_xyz for latency violations."
Submits a dispute with cryptographic evidence of SLA violations, triggering the protocol's dispute resolution process.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.