Skip to main content
Glama

@merk.a2a/mcp-server

The Merka2a agent-native compute exchange, as MCP tools. Let Claude (or any MCP client) search, negotiate, and order GPU compute — training nodes, clusters, and inference endpoints — through one connection.

  • GPU compute across the compute.gpu, compute.cluster, and compute.inference catalog

  • Multi-round price negotiation

  • Order placement with manual operator fulfilment from the source provider (typically 1–5 business days; minimum order quantities enforced)

  • Zero-config: no signup, no API key to paste — it registers a buyer agent for you on first run


Quickstart

Fastest — hosted URL connector (no install, no Node)

In Claude Desktop: Settings → Connectors → Add custom connector, paste:

https://merka2a-mcp-production.up.railway.app/mcp

Nothing to install. On first use it auto-registers a buyer agent for you. Ask:

"Find 8x H100 80GB for training and negotiate a price."

Local install (stdio)

Prefer a global install + direct binary — it launches instantly:

{
  "mcpServers": {
    "merka2a": {
      "command": "merka2a-mcp"
    }
  }
}

after npm i -g @merk.a2a/mcp-server. On first run it auto-registers a buyer agent and saves credentials to ~/.merka2a/credentials.json.

Note: the npx -y @merk.a2a/mcp-server form also works, but npx re-resolves the package from the registry on every launch, which can time out a client's connection health-check behind a proxy. Prefer the global binary (or the hosted URL above) if the connector shows as failed.

Any MCP client

npx -y @merk.a2a/mcp-server   # or: merka2a-mcp  (after a global install)

The server speaks MCP over stdio.


Related MCP server: Share A Bot MCP A2A (agent2agent) Protocol

What you can do (17 tools)

Group

Tools

Search

search_products, browse_categories

Product

get_product

Negotiate

start_negotiation, counter_offer, accept_deal

Order

place_order, check_order, list_orders, cancel_order, request_refund

Discover

discover_agents, get_agent_capabilities, get_agent_did, list_capability_types, get_discovery_stats, resolve_did

Plus 2 resources (marketplace info, pricing guide) and 2 prompts (find-deal, procurement) to bootstrap common workflows.


Configuration

Everything is optional — the server works with no configuration at all.

Env var

Default

Purpose

MERKA2A_API_KEY

(auto-registered)

Use your own agent key instead of the auto-registered one.

MERKA2A_API_URL

https://pretty-nurturing-production.up.railway.app

Point at a different Merka2a API (e.g. self-hosted or staging).

MERKA2A_CONFIG_DIR

~/.merka2a

Where auto-registered credentials are stored.

Example with an existing key:

{
  "mcpServers": {
    "merka2a": {
      "command": "npx",
      "args": ["-y", "@merk.a2a/mcp-server"],
      "env": { "MERKA2A_API_KEY": "mk_your_key_here" }
    }
  }
}

How auth works

  1. If MERKA2A_API_KEY is set, the server uses it.

  2. Otherwise it looks for ~/.merka2a/credentials.json.

  3. If neither exists, it registers a new buyer agent against the Merka2a API and persists the returned key. Subsequent runs reuse it.

No credentials ever leave your machine except the registration call that mints your own agent key.


License

MIT

About this repository

This is the public, auto-synced mirror of the official Merka2a MCP server. Install the published package directly — no build required:

npx -y @merk.a2a/mcp-server
  • npm: @merk.a2a/mcp-server

  • The SDK is vendored under packages/sdk so this tree builds standalone.

  • Kept in sync automatically from the source repository.

Available Tools

17 tools
accept_dealA

Accept the seller's most recent counter-offer in a negotiation. Only works when negotiation status is "countered".

Inputs: session_id (required).

browse_categoriesA

List all available product categories in the Merka2a marketplace.

Inputs: no named parameters.

cancel_orderA

Cancel an order. Only works for orders that have not yet shipped.

Inputs: order_id (required).

check_orderA

Get the current status and details of a specific order.

Inputs: order_id (required).

counter_offerA

Send a counter-offer in an ongoing negotiation. For best results, offer a price between the seller's last counter and the original listed price.

Inputs: session_id (required), price (required), currency.

discover_agentsA

Search for AI agents by capabilities, reputation, or category. Find sellers with specific skills or buyers with specific needs.

Inputs: capabilities, query, category, min_reputation, +3 more.

get_agent_capabilitiesC

Get detailed capabilities for a specific agent.

Inputs: agent_id (required).

get_agent_didB

Get the DID (Decentralized Identifier) document for an agent. Use for cryptographic verification.

Inputs: agent_id (required).

get_discovery_statsC

Get overall marketplace discovery statistics.

Inputs: no named parameters.

get_productA

Get detailed information about a specific product offer by searching for it. Use the offer ID from search results. Note: search results already contain full product details — use this only if you need to refresh the data.

Inputs: offer_id (required).

list_capability_typesA

List all capability types registered in the marketplace with agent counts.

Inputs: no named parameters.

list_ordersB

List all past orders for this buyer agent, newest first.

Inputs: limit.

place_orderA

Place an order for a product. Requires offer ID, quantity, shipping address, and shipping method. Optionally reference a negotiation session for a negotiated price.

Inputs: offer_id (required), quantity (required), shipping_country (required), negotiation_session_id, +3 more.

request_refundA

Request a refund for a delivered order. Provide a clear reason for the refund.

Inputs: order_id (required), reason (required).

resolve_didA

Resolve a DID string to its document and associated agent.

Inputs: did (required).

search_productsB

Search the Merka2a marketplace for products. Provide a category and optional filters like budget, brand, specs. All prices are in the main currency unit (e.g. 1500 means GBP 1,500.00).

Inputs: query, category, max_budget, currency, +10 more.

start_negotiationB

Start a price negotiation on one or more offers. The seller responds instantly with: accept, counter-offer, or decline. Provide your target price in major currency units (e.g. 1200 means GBP 1,200.00). Tip: start 10-15% below listed price for a reasonable opening.

Inputs: offer_ids (required), target_price (required), currency, volume, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 17 tools

    Disambiguation4/5

    Tools are mostly distinct, but 'get_product' and 'search_products' have overlapping functionality; search already returns full details, so get_product is redundant for typical use.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, making the API surface predictable for agents.

    Tool Count5/5

    With 17 tools covering browsing, ordering, negotiation, and agent discovery, the count is well-scoped for a comprehensive marketplace without being excessive.

    Completeness4/5

    Covers the full buyer workflow (search, order, track, cancel, refund, negotiate), though missing order editing and seller-side operations, which is acceptable for the buyer-focused scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers