mohamedkuch/utilia-solana-agent

💰 Finance & Fintech
0 Views
0 Installs

📇 ☁️ 🍎 🪟 🐧 - Read-only Solana transaction preflight and agent media tools: live priority fees, simulation, failure diagnosis, token-risk evidence, PDF-to-Markdown, and audio normalization. No API key; remote MCP calls use x402 USDC on Solana ($0.002–$0.01/call). Install via npx -y utilia-solana-agent@0.5.7 or use remote MCP at https://api.utilia.ink/mcp.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "mohamedkuch-utilia-solana-agent": {
      "command": "npx",
      "args": [
        "-y",
        "mohamedkuch-utilia-solana-agent"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

utilia-solana-agent

Turn a failed Solana signature into a support-ready answer: what landed, what changed, why it failed, and what is safe to try next. The package connects to Utilia, handles x402 payments locally, and can run as a guarded CLI, a budget-capped fee watcher, or a standard stdio MCP server.

No Utilia account, API key, or subscription is required. Calls cost between $0.002 and $0.01 in USDC on Solana or Base.

Copy-paste buyer fixtures

Four guarded examples cover automatic x402 v2 payment and retry over Base MCP, Solana MCP, Base HTTP, and Solana HTTP. Each fixture pins the host, network, asset, receiver, resource, timeout, per-call maximum, one-call total budget, and exact tool before a wallet may sign.

See examples/buyers/README.md. Fixture output is explicitly labeled as an operator compatibility test, not customer demand.

Diagnose one failed transaction

Use a dedicated low-balance Solana automation wallet that holds a small amount of mainnet USDC and SOL for fees:

export SOLANA_KEYPAIR_PATH=/absolute/path/to/automation-wallet.json
npx -y utilia-solana-agent@0.5.8 doctor
npx -y utilia-solana-agent@0.5.8 transaction <signature>

The diagnosis costs exactly $0.004 USDC and returns confirmation state, fee, compute use, SOL and token deltas, program logs, a stable failure class, and a retry-aware suggested action.

Run a budget-capped priority-fee feed

export SOLANA_KEYPAIR_PATH=/absolute/path/to/automation-wallet.json
npx -y utilia-solana-agent@0.5.8 watch-fees \
  --every 12m \
  --max-calls 25

The first JSONL result is immediate, then one result is emitted every 12 minutes: five calls per hour for $0.01, with an automatic $0.05 maximum. Each line includes the observation time, fee quantiles, paid amount, and settlement transaction. Add --accounts account1,account2 to localize the estimate to the writable accounts in a transaction.

Fastest wallet-managed proof

Agents that already use AgentCash can make the lowest-cost live call without handling a private key directly:

npx -y agentcash@latest balance
npx -y agentcash@latest fetch \
  https://api.utilia.ink/base/v1/fees/priority --yes

This route returns live Solana priority-fee data and settles the exact $0.002 USDC payment on Base. AgentCash creates and manages its own wallet on first use; balance reports its available funds and funding accounts. Utilia never receives or controls the payer's key.

Install the Solana evidence skill

Install the transaction workflow into Codex, Claude Code, OpenClaw, Cursor, or any other agent supported by the open Skills CLI:

npx skills add mohamedkuch/utilia-solana-agent \
  --skill utilia-solana-transaction-diagnosis -g -y

Then ask the agent to use $utilia-solana-transaction-diagnosis to explain a failed signature. The broader $utilia-solana-preflight skill also covers live priority fees, token risk, and pre-broadcast simulation.

What agents can do

ToolResultPrice
solana_priority_feesRecent priority-fee quantiles$0.002
solana_transaction_analysisConfirmed transaction, deltas, logs, failure guidance$0.004
solana_token_analysisAuthorities, Token-2022 controls, concentration, risk flags$0.006
solana_transaction_simulatePre-broadcast simulation and failure classification$0.008
pdf_to_markdownPage-delimited Markdown, metadata, and a source digest$0.0025
normalize_audioBounded normalized MP3, loudness measurements, and digests$0.01

PDF and audio utility transforms

The same guarded client also exposes two bounded non-Solana transforms:

npx -y utilia-solana-agent@0.5.8 pdf-to-markdown \
  https://example.com/document.pdf --max-pages 20
npx -y utilia-solana-agent@0.5.8 audio-normalize \
  https://example.com/voice-note.wav --output voice-note-normalized.mp3

PDF conversion costs $0.0025 USDC and returns page-delimited Markdown, metadata, and a source digest. Audio normalization costs $0.01 USDC, targets -16 integrated LUFS by default, verifies the saved MP3 locally, and returns loudness evidence plus content digests.

Dedicated skills are available as utilia-pdf-to-markdown and utilia-audio-normalization.

Solana quick start

Use a dedicated low-balance Solana automation wallet that holds a small amount of mainnet USDC and SOL for fees.

export SOLANA_KEYPAIR_PATH=/absolute/path/to/automation-wallet.json
npx -y utilia-solana-agent doctor
npx -y utilia-solana-agent fees

For a JSONL fee feed at five calls per hour, capped at 25 calls and $0.05 total:

npx -y utilia-solana-agent watch-fees --every 12m --max-calls 25

The first result is immediate, then one result is emitted every 12 minutes. The process stops after 25 calls; Ctrl-C stops it sooner. Localize estimates to the writable accounts used by your transaction builder with --accounts account1,account2.

You can alternatively set SOLANA_PRIVATE_KEY to a base58-encoded 64-byte private key. Environment variables are inherited by the local process; the private key is never sent to Utilia.

Solana Agent Kit plugin

Use the same wallet already attached to Solana Agent Kit. The plugin adds four budget-capped, read-only actions without asking for a second private key:

import { SolanaAgentKit } from "solana-agent-kit";
import { createUtiliaPlugin } from "utilia-solana-agent";

const agent = new SolanaAgentKit(wallet, rpcUrl, {}).use(createUtiliaPlugin());

const fees = await agent.methods.utiliaPriorityFees(agent, {
  accounts: writableAccounts,
});

The registered agent actions are UTILIA_PRIORITY_FEES, UTILIA_SIMULATE_TRANSACTION, UTILIA_ANALYZE_TRANSACTION, and UTILIA_ANALYZE_TOKEN. Payments are signed by the Agent Kit wallet only after the same receiver, asset, network, and per-call maximum checks described below pass. The wallet must implement Agent Kit's signMessage() method and hold a small amount of Solana mainnet USDC; the facilitator pays the transaction fee.

Add it to an MCP client

Add this stdio server to any MCP client that supports an executable command:

{
  "mcpServers": {
    "utilia": {
      "command": "npx",
      "args": ["-y", "utilia-solana-agent@0.5.8", "mcp"],
      "env": {
        "SOLANA_KEYPAIR_PATH": "/absolute/path/to/automation-wallet.json"
      }
    }
  }
}

The local bridge advertises all six Utilia tools without loading or transmitting a wallet. When the agent calls one, the bridge loads the configured wallet locally, verifies the payment request, signs the exact USDC payment, and returns the paid result. A wallet is therefore required for tool execution, not for MCP initialization or tools/list.

CLI

npx -y utilia-solana-agent fees [account1,account2]
npx -y utilia-solana-agent watch-fees [--every 12m] [--max-calls 25] [--accounts account1,account2]
npx -y utilia-solana-agent transaction <signature>
npx -y utilia-solana-agent simulate <serialized-transaction> [base64|base58]
npx -y utilia-solana-agent token <mint>
npx -y utilia-solana-agent@0.5.8 audio-normalize <public-https-audio-url> [--output normalized.mp3] [--target-lufs -16] [--max-seconds 180]
npx -y utilia-solana-agent@0.5.8 pdf <public-https-pdf-url> [max-pages]
npx -y utilia-solana-agent@0.5.8 pdf-to-markdown <public-https-pdf-url> [--max-pages 50]
npx -y utilia-solana-agent call <tool-name> '<json-arguments>'

Payment guardrails

The package will only approve a payment when every field matches:

  • network: Solana mainnet
  • asset: official Solana mainnet USDC
  • receiver: Utilia's published wallet
  • maximum: 10,000 atomic USDC, or $0.01, per tool call

A changed receiver, asset, network, zero amount, malformed amount, or higher amount is rejected before signing. The package has no withdrawal, swap, token-launch, or arbitrary-transaction capability.

Machine-readable endpoints

  • Remote MCP: https://api.utilia.ink/mcp
  • OpenAPI: https://api.utilia.ink/openapi.json
  • x402 discovery: https://api.utilia.ink/.well-known/x402
  • MCP registry package: ink.utilia/solana-preflight

License

MIT

Related MCP Servers

@agentfund/mcp

📇 ☁️ - Fundraising infrastructure for AI agents on Solana — campaigns, x402 donations, and on-chain reputation. MCP tools for registering agents, creating campaigns, and donating via the x402 pay-to-call flow, backed by Anchor programs (agentregistry, escrow, reputation). npx -y @agentfund/mcp

💰 Finance & Fintech1 views
@asterpay/mcp-server

📇 ☁️ - EUR settlement for AI agents via x402 protocol. Market data, AI tools, crypto analytics — pay-per-call in USDC on Base. SEPA Instant EUR off-ramp.

💰 Finance & Fintech1 views
@czagents/cnb

📇 ☁️ 🏠 🍎 🪟 🐧 - Czech National Bank (ČNB) daily FX rates: fetch official CZK exchange rates, convert between currencies, fetch historical rates. Cached 10 min to ease upstream load. npm @czagents/cnb or HTTP at cnb.cz-agents.dev/mcp.

💰 Finance & Fintech1 views
@arbitova/mcp-server

📇 ☁️ - Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create escrow, mark delivered with on-chain content hash, confirm or dispute, arbiter resolves with signed verdict, cancel/escalate on timeout. npx @arbitova/mcp-server

💰 Finance & Fintech0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.