Connect Cursor
Cursor reads kmem from its MCP configuration file. You add kmem to the file once, and every project can then use it.
The Connect screen marks Cursor Not yet tested with kmem. The steps on this page come from the Cursor documentation.
Create a connection
- In kmem, select Connect. The MCP tab opens.
- Select Cursor in the list of clients.
- Check the New connection form. kmem fills in a name, for example "Cursor · Maya · 8 Oct". You can change it.
- Select Create connection.
Create a connection explains each field. Copy the token now. kmem shows it only one time.
Merge the configuration
Cursor keeps its MCP servers for your user account in the file ~/.cursor/mcp.json.
- Under Configuration for Cursor, select Copy configuration.
- Open
~/.cursor/mcp.jsonin a text editor. If the file does not exist, create it. - Merge the kmem configuration into the file:
- If the file is empty or new, paste the whole configuration.
- If the file already has
mcpServers, add only theacme-kmementry inside it. Keep your other servers. - Save the file.
The configuration looks like this:
{
"mcpServers": {
"acme-kmem": {
"url": "https://acme.kmem.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Replace acme with your org's subdomain, in the server name and in the endpoint. Replace YOUR_TOKEN with the token of your connection. The Connect screen fills in these values for you.
The server name is <your-org>-kmem, for example acme-kmem. Each org has its own server name, so one computer can hold the kmem of more than one org.
A JSON file must stay valid. Check that each entry in mcpServers has a comma after it, except the last entry.
Turn on kmem in Cursor
- Open the MCP settings of Cursor.
- Find acme-kmem in the list of servers.
- Check the switch of acme-kmem. Turn it on if it is off.
Check the connection
- In Cursor, open Agent.
- Send the check prompt:
Use kmem to list the docs I can access. If there are none, say so.- In kmem, select Check connection. The three checks must show Seen.
If Cursor shows an error for acme-kmem, check the file. The url must end with /mcp, and the Authorization value must be Bearer, a space and the token.
Keep the token out of a shared project
Cursor also reads a project file, .cursor/mcp.json, inside a project folder. Do not put kmem in that file. A team can commit project files to a shared repository, and the file would then show your token to other people.
Use ~/.cursor/mcp.json in your home folder. That file stays on your computer.
If a token reaches a shared place by mistake, revoke the connection at once, and create a new one. Read Revoke a connection.
