Skip to content

Concepts and quick start

What EcoMark's MCP server is, what a connection can and cannot do, and the shortest path from nothing to a first tool call.

On this page

What it is#

EcoMark has its own MCP server. An assistant you already work in can call it and then read and prepare work in EcoMark as you: one member of one agency, with your role and your records. The assistant is the client; EcoMark is the server.

This is the opposite direction from integrations. There, EcoMark reaches your mail, calendar and files through each provider's own sign-in. Those connectors are not MCP, and EcoMark is not an MCP client.

Words used in these guides#

  • Client: the assistant, or any program that speaks MCP, that calls EcoMark.
  • Connection: one member's consent to one client in one agency. It has no permissions of its own.
  • Permission (scope): something you tick when you connect, such as leads:read. See Permissions.
  • Tool: one thing the client can ask EcoMark to do, such as list_leads. See Tools.
  • Approval request: what a client files when it wants something published or sent. You answer it inside EcoMark.

What a connection can and cannot do#

  • Read what you can see: listings, leads, appointments, tasks, availability and performance figures.
  • Write to EcoMark's own records: tasks, appointments, a lead's stage and next step, notes, and drafts of messages, links, QR codes and portfolios.
  • Ask you to publish a draft or send a message. Nothing is published or sent until you approve inside EcoMark.

What no connection can do

There is no permission for sending, publishing, deleting or spending. A client cannot reassign a lead, change a lead's contact details, open a Zoom or Teams meeting, or connect an app. No argument decides who a request acts as: that comes from the token and from nowhere else.

Quick start#

You need an account in an active EcoMark workspace and a client that supports remote MCP servers with OAuth: see What you need.

  1. Give the client the server's address

    It is one address: https://www.ecomarkai.com/api/mcp. There is no key to create.

  2. Let the client find the sign-in

    The client asks without a token, is answered 401 with the place to look, and opens EcoMark in your browser. You do nothing in this step.

  3. Sign in to EcoMark and choose the permissions

    The consent page shows the name the client gives itself, where its answers really go, your agency and your account. Untick what you do not want it to do, then press Allow.

  4. Ask something

    Back in the client, ask for something you can read, for example which leads have an overdue follow-up. The server asks every client to call whoami first; then it calls the tool that fits.

The address a client is given
https://www.ecomarkai.com/api/mcp

What the first request looks like#

A request without a token is refused, and the refusal says where the server's metadata is. This is how a client finds everything else by itself.

A request without a token
curl -i -X POST https://www.ecomarkai.com/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
The answer
HTTP/1.1 401 Unauthorized
Content-Type: application/json
WWW-Authenticate: Bearer error="invalid_token", error_description="Missing Authorization header", resource_metadata="https://www.ecomarkai.com/.well-known/oauth-protected-resource/api/mcp"

{"error":"invalid_token","error_description":"Missing Authorization header"}

The first tool call#

Once you have allowed it, the client holds an access token and calls tools. whoami needs no permission and says who the connection acts as, in which time zone, and what it may do.

Request body: tools/call whoami
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "whoami",
    "arguments": {}
  }
}
What whoami returns
{
  "member": {
    "name": "Marco Bellini",
    "role": "agent"
  },
  "agency": {
    "name": "Meridian Estates",
    "currency": "EUR",
    "workHours": {
      "days": [1, 2, 3, 4, 5],
      "start": "09:00",
      "end": "18:30"
    }
  },
  "timeZone": "Europe/Madrid",
  "locale": "en",
  "connection": {
    "client": "Example client",
    "permissions": ["leads:read", "calendar:read", "calendar:write", "links:draft"],
    "agencyPolicy": "full",
    "authorisedAt": "2026-10-08T01:38:51.409Z"
  },
  "sees": "records assigned to or created by this member"
}

A first read#

Request body: leads with an overdue follow-up
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
What list_leads returns
{
  "leads": [
    {
      "id": "lead_vidal",
      "name": "Carmen Vidal",
      "stage": "negotiation",
      "temperature": "hot",
      "source": "direct",
      "objective": "acquire",
      "market": "Madrid",
      "assignedTo": "Marco Bellini",
      "nextAction": "Counter-offer on Serrano 88",
      "nextActionAt": "2026-10-07T12:30:00.000Z",
      "lastActivityAt": "2026-10-07T22:38:51.350Z"
    },
    {
      "id": "lead_petrov",
      "name": "Ilya Petrov",
      "stage": "contacted",
      "temperature": "warm",
      "source": "email",
      "objective": "rent",
      "market": "Moscow",
      "assignedTo": "Marco Bellini",
      "nextAction": "Confirm viewing window",
      "nextActionAt": "2026-10-06T10:00:00.000Z",
      "lastActivityAt": "2026-10-04T07:38:51.350Z"
    }
  ],
  "total": 3,
  "nextCursor": "Mg"
}

A list carries no e-mail address and no phone number. The client asks for one lead with get_lead when it needs them.

Where to go next#