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.
https://marginmap.assistant.bd/mcphttps://marginmap.assistant.bd/.well-known/oauth-protected-resourceConnect a client
{
"mcpServers": {
"marginmap": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://marginmap.assistant.bd/mcp"
]
}
}
}{
"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_workspacesWorkspaces you belong to, with your role and plan. Its ids feed every other tool.
list_watchlistsWatchlists in one workspace, with item counts.
create_watchlistCreates a watchlist. Refused for read-only roles and when the plan's watchlist cap is reached.
list_pipelineSourcing pipeline items: stage, cost basis and target resale.
list_deal_evaluationsSaved deal evaluations with verdict, landed cost, expected resale and ROI.
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.
https://marginmap.assistant.bd/api/public/v1Plan, burst limit, monthly quota and usageWorkspace watchlists with item countsCatalogue search (curated sample data)curl https://marginmap.assistant.bd/api/public/v1/usage \ -H "Authorization: Bearer mm_live_..."
| Plan | Monthly calls | Burst | Keys |
|---|---|---|---|
| Business | 1,000 | 60 / min | 10 |
| Enterprise | Unlimited | 600 / min | 10 |
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.