Conventions on demand
Keep the long rules out of .cursor/rules. Let the agent fetch the page that matters for the task at hand.
Anysphere · Coding agents
Cursor’s agent is only as good as what it knows about your codebase’s rules. Add the registry as an MCP server and every Composer or Agent session can pull your conventions, service boundaries, and on-call notes before it edits.
Why pair them
Keep the long rules out of .cursor/rules. Let the agent fetch the page that matters for the task at hand.
Commit .cursor/mcp.json and the whole team’s agent reads one approved source.
Cursor expands environment variables in mcp.json, so the key stays on each machine.
Setup
You need two values from an agent page in Memrio: the workspace MCP URL and an API key. Examples use https://memrio.ai/api/mcp/acme — swap in yours.
Add .cursor/mcp.json at the root of the project (or ~/.cursor/mcp.json for every project).
{
"mcpServers": {
"memrio": {
"url": "https://memrio.ai/api/mcp/acme",
"headers": {
"Authorization": "Bearer ${env:CONTEXT_REGISTRY_KEY}"
}
}
}
}Export CONTEXT_REGISTRY_KEY in your shell profile, or paste the key directly into the headers value if the file is not committed.
export CONTEXT_REGISTRY_KEY="mr_live_8f3a…"Open Cursor Settings → Tools & MCP. memrio appears with a green dot and its tools listed. Toggle it on if it is off.
A short always-on rule makes the agent check the registry before answering questions about your stack.
---
alwaysApply: true
---
Before answering anything about our company, products, or policies, call `browse` on the memrio server, open the pages whose use-when instructions match, and answer only from those pages. If nothing applies, say so.Try it
“Look up our API error-handling conventions in the registry, then refactor this handler to match.”
FAQ
Other integrations