Mercator docs
Overview
Mercator allows agents to find tools that match the needs of an open-ended workflow, quote an immutable plan of one or more tool calls, and pay for execution as one durable job.
Mercator supports any service powered by open payment protocols such as MPP and x402. Each downstream service remains independently operated, with Mercator providing search, ranking, and durable execution behind a single interface and payment flow.
Installation
Install the Mercator CLI and start interactive setup:
curl -fsSL https://mercator.tempo.xyz/install.sh | shConfiguration
Pass setup arguments after sh -s --:
curl -fsSL https://mercator.tempo.xyz/install.sh | sh -s -- --client codex| Option | Behavior |
|---|---|
| No option | Bootstrap the local desktop plugin and configure every detected client. |
--client <name> | Configure one client. Repeat the option to select several. |
--dry-run | Preview configuration changes without writing them. |
--force | Refresh Mercator registrations and managed guidance without replacing wallet state. |
--no-plugin | Skip local desktop plugin installation for CLI-only environments. |
--no-agents | Skip managed Codex AGENTS.md guidance. |
Desktop-only machines do not need the Codex CLI. Mercator copies its bundled plugin into Codex's
user-local plugin index; no marketplace publication or management is required. Restart ChatGPT
desktop after setup to load it. Use --no-plugin for CI, headless servers, or an explicitly
CLI-only setup. mercator doctor reports the plugin path, version, registration state, and restart
requirement. mercator uninstall removes only Mercator's CLI-managed bundle and local entry.
Manual installation
You can register the remote MCP endpoint directly in a supported harness:
Manual MCP registration enables discovery and quoting. Paid execution also needs a payment runtime.
Run the automated installer or mercator wallet to set one up.
API
Mercator offers REST and MCP interfaces:
- REST: Read the live OpenAPI specification, which includes the generated
x-mercator-mcptool contracts. - MCP: Connect a Streamable HTTP client to
https://mercator.tempo.xyz/mcp.
REST request and response schemas and their MCP equivalents share canonical schemas. MCP tool names, descriptions, annotations, and input and output schemas are generated from the same typed contract used by the live server and OpenAPI document.
MCP tools
| Operation | REST | MCP |
|---|---|---|
| Discover endpoints | GET /v1/services/search | search_services |
| Inspect a service | GET /v1/services/:serviceId | describe_service |
| Validate and quote a plan | POST /v1/quote | quote_plan |
| Create a durable job | POST /v1/jobs | create_job |
| Read a result | GET /v1/jobs/:jobId | get_job |
| Create a completed-job review | POST /v1/jobs/:jobId/feedback | create_job_review |
| Read review reward status | GET /v1/jobs/:jobId/feedback | get_job_review |
| Send product feedback | — | send_product_feedback |
Key concepts
- Plan: An immutable directed acyclic graph of 1–100 service calls. Each node declares its endpoint, input, and dependencies; Mercator derives prices from live quotes.
- Job: One durable execution of an approved plan. Mercator will execute nodes concurrently whenever possible.
Costs and payment
Discovery, service inspection, quoting, result polling, and feedback are free. Paid jobs cost the freshly quoted provider total plus Mercator's advertised multiplier. Mercator accepts that exact amount before execution and preserves each node's quoted provider guard.
Mercator accepts payment on Tempo mainnet through either method:
- Reusable MPP session: Authorize USDC.e once. Each accepted job advances the session by the exact freshly quoted amount.
- One-time direct charge: Pay the exact freshly quoted amount in MACH, with USDC.e as a fallback.
MACH
MACH is a closed-loop, USD-denominated token on Tempo. Think of it as merchant credit rather than a general-purpose stablecoin.
Run mercator wallet fund to buy MACH. $1 buys 1 MACH, which is minted directly to the Tempo wallet selected at checkout. Confirm the address before buying: the balance cannot be moved to another personal wallet afterward.
MACH can be sent only to approved merchants, including Mercator. Transfers between ordinary wallets are rejected, and Mercator does not offer cash redemption, swaps, or bridges. MACH balances do not expire.
Once funded, the wallet automatically uses MACH for Mercator payments. Discovery and quoting remain free.
Service feedback
Mercator aims to surface the best tools for a query by combining relevance, price, reliability, and user-reported quality. After a job reaches a terminal state, an agent can leave a review of the workflow and up to 25 individual executed nodes.
Agents that provide high-quality reviews for eligible jobs may receive 0.01 USD in pathUSD.
Feedback criteria
| Criterion | Requirement |
|---|---|
| Review content | Include an overall 1–5 rating, at least one tool rating, or both. |
| Comment limits | Overall comments: 2,000 characters. Tool comments: 1,000 characters. |
| Tool reference | Use the plan's nodeId; Mercator resolves the service and endpoint from the stored job. |
| Tags | accurate, fast, good_value, helpful, inaccurate, poor_value, slow, or unhelpful. |
| Idempotency | A job accepts one canonical review. Replaying the same body returns it; changing it returns 409. |
Reward eligibility additionally requires:
- Submission within five minutes of job completion.
- Purchased-provider spend greater than
0.01.
Example request
curl -X POST 'https://mercator.tempo.xyz/v1/jobs/<job-id>/feedback' \
-H 'Content-Type: application/json' \
--data '{
"rating": 5,
"comment": "Useful result and good value.",
"tools": [
{
"nodeId": "first_call",
"rating": 5,
"comment": "Returned the right source quickly.",
"tags": ["accurate", "fast"]
}
]
}'If the reward is queued, poll its status:
curl 'https://mercator.tempo.xyz/v1/jobs/<job-id>/feedback'Mercator for service owners
Mercator can discover and execute services that use supported open payment protocols such as MPP and x402.
Interested in getting your service discovered? Email mercator@tempo.xyz with:
- service URL
- documentation or OpenAPI URL
- supported payment protocol
- a short description of its capabilities.
Reporting bugs
Ran into an issue with Mercator? Report it through either channel:
- Email mercator@tempo.xyz.
- Ask an MCP-connected agent to call
send_product_feedbackafter you explicitly approve the report.
Bug reports must not include secrets, credentials, payment material, personal data, job IDs, or raw tool inputs and outputs. The job feedback REST endpoint is for workflow and service-quality reviews, not product bug reports.
FAQ
What does Mercator do?
Mercator is a gateway for service discovery and multi-service execution. It turns an agent's intent into a quoted plan, authorizes a bounded budget, pays eligible providers, and returns one durable result.
Does asking for a quote spend money?
No. Search, service description, and quoting are free. A quote validates the plan and current provider terms but does not create payment credentials or purchase provider results.
Is a quote guaranteed until execution?
No. A quote is advisory. Mercator resolves dependency-derived inputs and validates live payment terms again during execution, always enforcing the approved node and plan limits.
How much can an agent spend?
Every plan node has a maximum spend and the whole plan has a totalMax. Mercator rejects charges above either bound. The agent should show that total and receive approval before submission.
Do free operations require a wallet?
No. Discovery, service description, quoting, health checks, result polling, and feedback are free. A wallet or native MPP payment integration is needed when submitting a paid job.
How does Mercator choose services?
Mercator combines lexical and semantic relevance with a small catalog-price signal. Recent provider health can reorder close relevance matches, while live probing and execution-time validation determine current availability.
Can I choose a specific service?
Yes. Search can either prefer selected service IDs while retaining relevant fallbacks or require them as a fail-closed allowlist. A submitted plan names the exact service and endpoint used by every node.
How fresh are service prices and availability?
Mercator supports two search modes:
- Live: Starts with ranked catalog results, then makes bounded availability probes when live probing is enabled.
- Static: The default mode. Ranks catalog results without contacting providers, using catalog price estimates and eligible historical health.
In either mode, a quote validates every node's current terms, and execution revalidates the price and payment policy immediately before purchase.
What payment protocols are supported?
Payments to Mercator are supported through MPP on Tempo.
What happens when one tool in a workflow fails?
Mercator retries transient provider failures up to three total attempts. A permanent failure skips dependent nodes, while independent nodes may finish; the overall job still fails.
Calls skipped or failed before purchase cost nothing, but completed purchases remain billable.
What happens if a job is interrupted?
Jobs are durable and idempotent. Reusing the same submission key recovers the same logical job, while stored provider results and bounded retries prevent deliberate duplicate purchases.
Can I use REST instead of MCP?
Yes. REST and MCP expose the same core discovery, quote, job, and accounting system. Use MCP for agent-native workflows and REST for direct application integration.
Do I give Mercator a private key?
No. Do not paste or send private keys. Wallet tooling handles signing and payment authorization; Mercator receives only the protocol credentials needed for the approved request.
What data does Mercator send to service providers?
Mercator sends only the selected endpoint's schema-validated input, including any dependency output explicitly referenced by that node, plus a provider-scoped idempotency key and the payment credential for that purchase. It does not send the full workflow or the client's wallet credentials.
How long do jobs and results remain available?
Job records, cached results, and charged idempotency records expire after seven days. Feedback and individual tool reviews are retained for 90 days.
What tokens and networks can fund Mercator?
Mercator client payments use Tempo mainnet.
How does a service get listed?
Mercator ingests reviewed service catalogs and endpoint metadata. Email mercator@tempo.xyz with the service URL, documentation, payment protocol, and capabilities.