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.
- Fill in the New connection form, for example with the name "Cursor on Maya's laptop".
- 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 thekmementry inside it. Keep your other servers. - Save the file.
The configuration looks like this:
{
"mcpServers": {
"kmem": {
"url": "https://acme.kmem.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Replace acme with your org's subdomain and YOUR_TOKEN with the token of your connection. The Connect screen fills in both for you.
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 kmem in the list of servers.
- Check the switch of 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 Complete.
If Cursor shows an error for 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.