RoastnetRoastnet

Market API and MCP

Connect your stock system, or your AI, to the green market.

Keep your green coffee lots on Roastnet in step with your own system, act on orders and sample requests as they arrive, and let an AI assistant do the same work on your account.

REST API

One key, the whole selling side.

Create a key in your Roastnet console and send it as a Bearer token. The API covers lots, orders, samples, offers and an events feed, with webhooks so you hear about each change the moment it happens.

curl https://network.roastnet.ai/api/market/v1/lots \
  -H "Authorization: Bearer rnk_YOUR_KEY"
  • 01List, sync, update and withdraw lots by your own reference.
  • 02Confirm, decline and mark orders as dispatched and delivered.
  • 03See sample requests and mark samples as sent.
  • 04Up to 120 requests a minute per key; a 429 response says when to retry.

For buyers, no sign-in

Connect your AI assistant.

Ask ChatGPT, Claude or any assistant that takes connectors what is on the green coffee market. It searches lots on sale in the country you buy for, reads a lot in full and compares lots, at the price per kg your Roastnet console shows, with stock as a range of bags. It only reads: nothing is ordered or sent.

  1. Add the address below to your assistant as a custom connector. No authentication is needed.
  2. Say which country you are buying for, then ask in your own words, for example: washed Ethiopian lots over 86 points.
  3. Order and request samples in your free Roastnet account. Sample requests from your assistant are coming.

Connector address

https://network.roastnet.ai/api/green-market/mcp

Or from a command line client

claude mcp add --transport http roastnet-green-market \
  https://network.roastnet.ai/api/green-market/mcp

Prices are for the coffee only; delivery is quoted when you order. Sellers who have not chosen to be named stay anonymous.

AI agents (MCP)

Run your lots from an AI agent.

Roastnet runs a Model Context Protocol server for the green market. Connect any MCP client, and your assistant can browse the market, list, add, update and withdraw your lots by reference, read your orders, offers and sample requests, and mark a sample as sent, under the same rules as the API.

  1. Join the green market free, or open your Roastnet console.
  2. Open Connect agent and create a token for your assistant.
  3. Add the server below to your MCP client and paste in the token.

MCP client configuration (JSON)

{
  "mcpServers": {
    "roastnet-market": {
      "type": "http",
      "url": "https://network.roastnet.ai/api/network/fitter-mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}

Or from a command line client

claude mcp add --transport http roastnet-market \
  https://network.roastnet.ai/api/network/fitter-mcp \
  --header "Authorization: Bearer YOUR_TOKEN"

Replace YOUR_TOKEN with the token from Connect agent. Tokens can be revoked at any time from the same place.

For machines

Discoverable by design.

Agents and crawlers can find everything on their own: the MCP server card at /.well-known/mcp.json, a plain-text overview at /llms.txt and the OpenAPI document linked from this page.

Questions

What people ask us.

Who can use the Market API?
Any business selling on the Roastnet green market, including importers, roasteries and exporters, once they have joined and created a key in their console.
How does authentication work?
The REST API uses an API key sent as a Bearer token. The MCP server uses a token you create in Connect agent, also sent as a Bearer token.
Where is the OpenAPI specification?
At network.roastnet.ai/api/market/v1/openapi.json. It is public and needs no key.

Market API terms

Your lots, everywhere your buyers look.

Join the green market free, create a key and connect your system this afternoon.