Skip to main content
This page provides a comprehensive overview of the SDKs available for interacting with the Prometheus Protocol and the underlying Model Context Protocol (MCP).

For Service Developers (On-Chain)

These SDKs are for developers building services on the Internet Computer that will be listed in the Prometheus App Store.

Official Motoko SDK

This is the primary, feature-complete SDK for building Prometheus Protocol compliant servers in Motoko. It includes built-in support for the identity, payments, and trust pillars.

Core Concepts

The SDK is declarative. You define your server’s capabilities (tools, resources) and pass them to the Mcp.createServer function.

Monetization & Payments

The SDK has first-class support for token payments for tool invocations. You define the payment requirement on the tool itself, and the SDK handles the allowance check and token transfer before your tool logic is ever executed.
src/main.mo
let tools : [Mcp.Tool] = [{
  name = "unlock_resource";
  // ...
  // The tool is what carries the payment details.
  payment = ?{
    amount = 50_000_000; // Cost per call
    ledger = Principal.fromText("ryjl3-tyaaa-aaaaa-aaaba-cai"); // ICRC-1 Ledger
  };
}];

Treasury Management

The SDK automatically exposes secure treasury functions on your canister for managing collected funds.
  • get_owner()
  • set_owner(new_owner)
  • get_treasury_balance(ledger_id)
  • withdraw(ledger_id, amount, destination)

Proof of Usage (Beacon)

The SDK includes a built-in “beacon” to participate in the protocol’s Proof of Usage rewards program. By enabling it in your config, the SDK will automatically and securely report authenticated tool usage statistics, making your service eligible for rewards.
src/main.mo
transient let beaconContext : ?Beacon.BeaconContext = ?Beacon.init(
    Principal.fromText("m63pw-fqaaa-aaaai-q33pa-cai"), // Public beacon canister ID
    24 * 60 * 60, // Send a beacon every 24 hours
);

Community Rust SDK

For developers who prefer to build services in Rust, this community-maintained SDK provides compatibility with the Prometheus Protocol.

ByteSmithLabs/ic-rmcp

A Rust framework for building MCP servers on the Internet Computer. It is compatible with the Prometheus Protocol’s authentication and payment systems.

For AI Agent & Client Developers (Off-Chain)

These SDKs are for developers building applications that consume tools from services listed in the App Store. They are maintained by the core Model Context Protocol team and provide a standardized way to connect from any environment.
I