Skip to main content

MCP server for the Provenance platform — connect AI agents to your provenance data

Project description

STDIO Labs

Provenance MCP Server

Model Context Protocol server for the Provenance platform — connect AI agents to your provenance data.

PyPI version License: MIT Python Version


Installation

pip install provenance-mcp

Quick Start

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "provenance": {
      "command": "provenance-mcp",
      "env": {
        "PROVENANCE_API_URL": "https://your-api.provenance.dev/api",
        "PROVENANCE_API_KEY": "your-api-key"
      }
    }
  }
}

Amazon Q Developer

Add to your Amazon Q MCP config:

{
  "mcpServers": {
    "provenance": {
      "command": "provenance-mcp",
      "env": {
        "PROVENANCE_API_URL": "https://your-api.provenance.dev/api",
        "PROVENANCE_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor / Windsurf / Other MCP Clients

Same pattern — set the command to provenance-mcp and provide the env vars.

Authentication

API Key (default)

provenance-mcp

Set PROVENANCE_API_KEY in your environment or MCP client config.

OAuth2 (client credentials)

provenance-mcp-oauth

Set PROVENANCE_CLIENT_ID and PROVENANCE_CLIENT_SECRET. Tokens auto-refresh on expiry.

Environment Variables

Variable Required Default Description
PROVENANCE_API_URL Yes http://localhost:4000/api Provenance API base URL
PROVENANCE_API_KEY Yes* API key for authentication
PROVENANCE_CLIENT_ID Yes** OAuth2 client ID
PROVENANCE_CLIENT_SECRET Yes** OAuth2 client secret
PROVENANCE_PLATFORM_URL No https://provenance-platform.onrender.com Platform URL (OAuth mode)

* Required for provenance-mcp ** Required for provenance-mcp-oauth

Available Tools

The server exposes 80+ tools covering the full Provenance API:

Core

  • query_interactions — Search interactions by resource, action, origin, time range, spanId, parentSpanId
  • create_interaction — Record a new provenance event (accepts optional spanId and parentSpanId for span hierarchy)
  • search_activity — Advanced multi-filter search
  • get_trace — Get full interaction history for a resource

Configuration

  • get/create/update/delete_resource_type — Manage resource types
  • get/create/update/delete_action — Manage actions
  • get/create/update/delete_origin — Manage origins

Analytics

  • query_analytics — Run analytics queries with metrics, dimensions, filters
  • get_home_dashboard — Get dashboard summary data
  • get/create/update/delete_dashboard — Manage dashboards
  • get/create/update/delete_widget — Manage dashboard widgets
  • get_widget_data — Get rendered widget data

Notifications

  • get/create/update/delete_subscriber — Manage notification subscribers
  • get/create/update/delete_subscription — Manage event subscriptions
  • pause/resume_subscription — Control subscription state
  • get_queue_stats / process_queue — Monitor notification queue

Alerting

  • get/create/update/delete_interaction_alert — Manage alerts
  • get_alert_states / evaluate_alerts — Monitor alert status
  • get/create/update/delete_interaction_metric — Manage metrics
  • calculate_metric — Calculate metric values

Inbound Webhooks

  • get/create/update/delete_inbound_source — Manage webhook sources
  • get/create/update/delete_inbound_mapping — Manage payload mappings
  • test_inbound_mapping — Test mappings against sample payloads

Secrets

  • get/create/update/delete_secret — Manage secrets
  • test_secret — Verify secret resolution
  • get/create/update/delete_secret_provider — Manage provider connections

Adapters

  • get_adapters / get_adapter — Browse notification adapters
  • publish_adapter — Publish custom adapters
  • get/create/update/delete_adapter_setting — Manage adapter config

Development

git clone https://github.com/stdiolabs/provenance-mcp.git
cd provenance-mcp
pip install -e .

# Run locally
PROVENANCE_API_KEY=your-key provenance-mcp

Related Projects

License

MIT — STDIO Labs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

provenance_mcp-1.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

provenance_mcp-1.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file provenance_mcp-1.1.0.tar.gz.

File metadata

  • Download URL: provenance_mcp-1.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for provenance_mcp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 59a87318dd09bff16fdee2cb42fc11623029798929cc8a5b130c0c3f431d7719
MD5 1fd9355a37fde8885acd3954a27e85f7
BLAKE2b-256 1c5ab112a3b97d87132c1f2d21e0a59638cb3f9dbd05b8afea182b0e82f7370a

See more details on using hashes here.

Provenance

The following attestation bundles were made for provenance_mcp-1.1.0.tar.gz:

Publisher: publish-python.yml on stdiolabs/provenance_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file provenance_mcp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: provenance_mcp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for provenance_mcp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37b823b0bbe980dcad360a0dcc5943af7e66ebf3fcb5cb3823972e05595817a2
MD5 76322967c833e626a06a7c0af498cf96
BLAKE2b-256 e25bad28438abc85a28f1253fce1535859131b48c48de0316ecbab3c9a7cec10

See more details on using hashes here.

Provenance

The following attestation bundles were made for provenance_mcp-1.1.0-py3-none-any.whl:

Publisher: publish-python.yml on stdiolabs/provenance_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page