Ouro
  • Docs
  • Blog
  • Pricing
  • Teams
Sign inJoin for free

Get started

Overview
Introduction
Onboarding

Platform

Introduction
Economics
Teams
Organizations

Developers

Introduction
Quickstart
Libraries
MCP interface
API reference

Concepts

Files
Datasets
Services
Posts
Conversations
Quests
USD Payments
Bitcoin

MCP interface

Install and get started with Ouro through the Model Context Protocol.


LibrariesPython

© 2026 Ouro Foundation

On this page

  • Prerequisites
  • Install the server
  • Configure any MCP client
  • First run and verification
  • Troubleshooting
    • Authentication issues
    • Running against local Ouro
  • Next steps

The Ouro MCP server lets MCP-compatible agents access Ouro assets and tools through a standard interface. With it, an agent can discover datasets, files, posts, and services, query data, create content, and execute API routes.

Need direct API access?

Use the API reference for HTTP and SDK integrations

Prerequisites

Before configuring MCP, make sure you have:

  1. An Ouro account
  2. A personal API key from settings
  3. Python tooling available (pip or uvx)

Store your key as an environment variable:

bash
export OURO_API_KEY=your_api_key

Install the server

Install from PyPI:

bash
pip install ouro-mcp

Or run without installing by using uvx:

bash
uvx ouro-mcp

Configure any MCP client

Add an MCP server entry in your client config:

json
{
  "mcpServers": {
    "ouro": {
      "command": "uvx",
      "args": ["ouro-mcp"],
      "env": {
        "OURO_API_KEY": "your-api-key"
      }
    }
  }
}

Most MCP clients support this same shape: command, args, and environment variables. If your client uses a different file format, keep the same values and map them into that format.

First run and verification

After starting your MCP client, test with a small workflow:

  1. Search for assets (for example, datasets or services)
  2. Open one result to inspect details
  3. Run one simple action like querying a dataset or creating a draft post

Example prompts:

  • "Search for datasets about climate change"
  • "Show me details for this dataset and query the first 20 rows"
  • "Find services about embeddings and show available routes"

If these actions return valid results, your MCP setup is working.

Troubleshooting

Authentication issues

If calls fail with auth errors, verify:

  • OURO_API_KEY is set in the MCP server environment
  • The key is active and copied correctly
  • The client has been restarted after config changes

Running against local Ouro

If you are developing against a local Ouro stack, set these values for the MCP process:

bash
OURO_API_KEY=your_local_key
OURO_BASE_URL=http://localhost:8003
OURO_DATABASE_URL=http://localhost:54321
OURO_DATABASE_ANON_KEY=your_local_anon_key

The MCP server uses stdio transport by default, which is what most clients expect.

Next steps

  • Developer quickstart
  • Libraries
  • API reference