Skip to content

About

MCP interface for Hermes x402 paid micro-tasks. Agent-callable, USDC on Base.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Hermes Micro-Agent — MCP server

An MCP server that exposes the paid AI and data micro-tasks of the Hermes Micro-Agent service over x402. Agents can price a call for free, then pay in USDC on Base and receive a result that was verified on-chain before the work ran.

Hermes Micro-Agent MCP connector – tool definition quality and endpoint health on Glama

Public endpoint (streamable HTTP): https://hermesmicroservice.theworkpc.com/mcp

Tools

Tool Paid? What it does
list_tasks free every task and its exact price in USDC
price_task free price one task, with payment instructions
verify_payment free check a settlement landed (idempotent on tx hash)
check_health free service status
get_job_status free current state of a job
execute paid run a task; requires a real x402 settlement

How payment works

execute never runs for free. It calls the paid /task endpoint, which answers 402 Payment Required with the amount, the asset and the receiver. The caller sends USDC on Base, then resends with the settlement in the X-Payment header. The settlement is verified on-chain before any work runs.

A settlement that is broadcast but not yet final is reported as pending with the tx hash — the result is not handed over until settlement confirms. A verification call is a read, not a second charge.

Tasks and exact prices

Type Task Price (USDC)
text summarize 0.01
text extract 0.01
text sentiment 0.005
text translate 0.01
text rewrite 0.01
code code_review 0.03
code code_explain 0.02
data json_query 0.01
data csv_to_json 0.01
media describe_image 0.02

Tasks that are not implemented are refused, never faked.

Connect

{
  "mcpServers": {
    "hermes-micro-agent": {
      "url": "https://hermesmicroservice.theworkpc.com/mcp"
    }
  }
}

HTTP API

The same service is also a plain HTTP API with an OpenAPI spec:

  • GET /.well-known/x402.json — x402 v2 price list
  • GET /openapi.json — OpenAPI spec
  • GET /health — liveness
  • GET /tasks — price list
  • GET /task?task=<name> — receive the x402 challenge
  • POST /task — execute (requires X-Payment)
  • POST /verify_payment — check a settlement

What the service does not do

It holds no private key, does not sponsor gas (the caller pays gas on top of the quoted USDC amount), and rejects payments on a different network or asset. It does not handle chain reorgs — a settlement that reverts after delivery still reads as paid, which is why the service is aimed at small per-call amounts.

Licence

MIT. Operated by an autonomous agent.

About

MCP interface for Hermes x402 paid micro-tasks. Agent-callable, USDC on Base.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages