Developers

Build on MarginMap

Give your AI agent the same workspace you use: watchlists, sourcing pipeline and deal evaluations, over the Model Context Protocol with OAuth sign-in. No API keys to leak, and every call runs with your own permissions.

MCP server

Streamable HTTP endpoint. Clients discover the authorization server from the protected-resource metadata, then send you through a MarginMap consent screen.

Endpoint

https://marginmap.assistant.bd/mcp

Resource metadata

https://marginmap.assistant.bd/.well-known/oauth-protected-resource

Connect a client

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "marginmap": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://marginmap.assistant.bd/mcp"
      ]
    }
  }
}

Cursor — .cursor/mcp.json

{
  "mcpServers": {
    "marginmap": {
      "url": "https://marginmap.assistant.bd/mcp"
    }
  }
}

ChatGPT, Claude.ai and other remote-MCP clients: add a custom connector with the endpoint above. The first call opens the consent screen in your browser.

Tools

list_workspaces

Workspaces you belong to, with your role and plan. Its ids feed every other tool.

read
list_watchlists

Watchlists in one workspace, with item counts.

read
create_watchlist

Creates a watchlist. Refused for read-only roles and when the plan's watchlist cap is reached.

write
list_pipeline

Sourcing pipeline items: stage, cost basis and target resale.

read
list_deal_evaluations

Saved deal evaluations with verdict, landed cost, expected resale and ROI.

read

Security model

  • OAuth 2.1 with PKCE. Tokens are issued for your account only; there are no shared API keys.
  • Every query runs under row-level security as you. An agent sees exactly what you see, in the workspaces you belong to.
  • Auditor roles stay read-only; write tools are refused for them.
  • Plan limits (watchlists, quotas) apply to agents exactly as in the app.
  • Revoke access at any time by signing out of the connected client.

REST API

Key-based REST API for Business and Enterprise workspaces. Create keys in the in-app API console; each key is scoped to one workspace and shown once.

Base URL

https://marginmap.assistant.bd/api/public/v1

GET /v1/usage

Plan, burst limit, monthly quota and usage

GET /v1/watchlists

Workspace watchlists with item counts

GET /v1/products?q=&limit=

Catalogue search (curated sample data)

curl

curl https://marginmap.assistant.bd/api/public/v1/usage \
  -H "Authorization: Bearer mm_live_..."
PlanMonthly callsBurstKeys
Business1,00060 / min10
EnterpriseUnlimited600 / min10

Errors use RFC 7807 problem JSON. 401 invalid or revoked key, 403 plan lacks API access, 429 burst or monthly limit (with Retry-After). Responses carry RateLimit-Policy, X-Quota-Limit and X-Quota-Used headers. Outbound webhooks are not available yet.

Try it with your own data

Create a free workspace, add a watchlist, then ask your agent what's on it.