Connect OpenClaw, Cursor and Other MCP Clients

Create a personal API token, add Lumenbase's remote MCP server to OpenClaw or Cursor, and test the connection.

Developer Guide
Updated Sep 25, 20266 min readBy Sebastian Streiffert

What this is

Lumenbase runs a remote MCP server. MCP is the standard way AI agents borrow tools from another app. Point OpenClaw, Cursor or another MCP client at it with a personal API token, and your agents can search and update your CRM.

The token acts as you. Agents see only what your own account can see. Using Claude? The Claude connector is easier: it signs in with OAuth and needs no token.

Before you begin

You needDetails
A Lumenbase accountAny member can create a personal token.
An MCP clientOne that supports Streamable HTTP and a custom Authorization header. OpenClaw and Cursor both do.

Connect OpenClaw

1

Generate a personal API token

Go to SettingsPersonalMy integrationsMCPToken and click Generate API Token.

Generate API Token

Create a token for an agent framework such as OpenClaw or Hermes. You will see the full token once.

The Generate API Token dialog. After Generate, the same dialog shows the token once, with Copy token.
  • 1
    Label: optional. Name the machine, such as Home gateway, if you run more than one.

Click Generate, then Copy token. Store it safely: Lumenbase shows the full token only once.

Not in your list yet? On SettingsPersonalMy integrations, click Add integration and pick MCP under AI.
2

Give the token to the gateway

Set LUMENBASE_AGENT_TOKEN where the gateway runs. The easiest place is ~/.openclaw/.env, which OpenClaw reads on start:

~/.openclaw/.env
LUMENBASE_AGENT_TOKEN=<paste-your-token>

Or export it in the shell that starts the gateway:

Terminal (macOS, Linux)
export LUMENBASE_AGENT_TOKEN="<paste-your-token>"
If the gateway runs as a service (systemd, launchd, Docker), a variable exported in your own terminal does not reach it. Use ~/.openclaw/.env or the service definition.
3

Add Lumenbase as an MCP server

Add this under mcp.servers in ~/.openclaw/openclaw.json. OpenClaw fills in ${LUMENBASE_AGENT_TOKEN} from the environment, so the token itself never sits in the file.

~/.openclaw/openclaw.json
{
  "mcp": {
    "servers": {
      "lumenbase": {
        "url": "https://lumenbase.io/api/mcp",
        "transport": "streamable-http",
        "headers": {
          "Authorization": "Bearer ${LUMENBASE_AGENT_TOKEN}"
        }
      }
    }
  }
}

Or write the same entry from the command line:

Terminal
openclaw mcp set lumenbase '{"url":"https://lumenbase.io/api/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer ${LUMENBASE_AGENT_TOKEN}"}}'
4

Restart the gateway and test the connection

Terminal
openclaw gateway restart
openclaw mcp doctor lumenbase --probe

The probe connects to Lumenbase and lists its tools, such as fetch_contacts and fetch_deals. Lumenbase lists its tools even without a token, so the real test is the next step: a CRM answer means the token works.

5

Ask your agent about the CRM

Start a chat and ask, for example, "List my open deals". To limit which Lumenbase tools a chat can use, open +, Connectors, Tool access in the OpenClaw Control UI.

Connect Cursor or another MCP client

Every client needs the same two values: the server URL, and your token sent as a Bearer header. For Cursor, put this in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), and set LUMENBASE_AGENT_TOKEN in your environment.

~/.cursor/mcp.json
{
  "mcpServers": {
    "lumenbase": {
      "url": "https://lumenbase.io/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:LUMENBASE_AGENT_TOKEN}"
      }
    }
  }
}
SettingValue
Server URLhttps://lumenbase.io/api/mcp
Transportstreamable-http
HeaderAuthorization: Bearer <your-token>

What your agents can do

The server offers the same CRM tools Lumo and Claude use, more than 70 of them. A personal token has read and write access. Your admin's Lumo capability settings can turn tools off for the whole workspace.

Look up

crm:read

Read CRM records and context without changing data.

ContactsCompaniesDealsTasksInvoicesActivitiesCustom fieldsListsProjects and itemsWorkspace knowledge and source textFiles and artifactsChartsEmail conversationsLinkedIn history and introductionsEvent contactsMeeting historyCampaign resultsDaily briefingOutreach statusRevenue at risk

Create

crm:write

Add records, organize work and prepare drafts when you ask.

ContactCompanyDealTaskInvoiceListList membershipProject itemActivity noteFile attachmentRevenue at riskCampaign draftAutomation

Update

crm:write

Change existing records and organize your workspace.

ContactCompanyDealTaskTask completionInvoiceActivityList name and membershipProject item and commentsCustom fieldLead stageArtifact locationRevenue at risk

Remove

crm:write

Delete records or remove membership where your permissions allow it. Client confirmation settings still apply.

ContactCompanyDealTaskInvoiceActivityListList membershipRevenue at risk

Messages and meetings

crm:write

Sending needs the relevant connected account. Remote LinkedIn delivery also needs an extension session.

Send emailSend LinkedIn messageSend WhatsApp messageSchedule meetingPropose meeting times

Enrich and reconcile

crm:write

Enrich contacts or companies, record job changes and propose duplicate merges. Provider setup and credits may be needed.

Company enrichmentContact enrichmentEnrichment providersJob changePropose merge

Workspace administration

crm:write

Available only with the required role and workspace settings.

Workspace setupDeal pipelinesLead pipelinesWorkspace settingsAutomation optionsInvite team member

Troubleshooting

OpenClaw often fails an MCP connection without an error in chat: the agent just answers without CRM data. Test the token on its own first. This call asks for one contact, so it only succeeds with a valid token:

Terminal
curl -s -X POST https://lumenbase.io/api/mcp \
  -H "Authorization: Bearer $LUMENBASE_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fetch_contacts","arguments":{"limit":1}}}'
You seeFix
Lumenbase is not connectedNo token reached the server: the variable is empty in that shell or process. Set it and try again.
Access token not recognizedThe token is mistyped or cut off. Paste it again, or generate a new one.
This access token has been revokedGenerate a new token under SettingsPersonalMy integrationsMCPToken and update the variable.
This access token is no longer valid for your workspaceYou were removed from the workspace. Ask an admin to invite you again, then create a new token.
Rate limit exceeded. Maximum 60 requests per minute.Wait a minute. Each token also has a cap of 5,000 requests a day.
The probe connects but lists no toolsCheck toolFilter in the server entry, and ask your admin whether Lumo tools are turned off.
Changes to openclaw.json have no effectRun openclaw gateway restart. Follow the log with openclaw logs --follow.
Never paste the token itself into a config file you share or commit. Use the environment variable, and revoke a token the moment it leaks.

Quick reference

Create or revoke tokens
SettingsPersonalMy integrationsMCPToken
Server URL
https://lumenbase.io/api/mcp
Environment variable
LUMENBASE_AGENT_TOKEN
Limits
60 requests a minute, 5,000 a day, per token

Was this article helpful?