Skip to content

Claude Code and Cursor

Claude Code and Cursor connect to your outlet the same way Claude does: with your site’s address followed by /mcp, and a sign-in with your CMS account in the browser. You don’t need an API key or a token.

In the examples, replace https://yoursite.ro/mcp with your own site’s address. You can copy it from Apps › AI assistants in the admin panel. The name naratica is only a label; you can use your outlet’s name instead.

Add your outlet with one command in your terminal:

Terminal window
claude mcp add --transport http naratica https://yoursite.ro/mcp

By default it is available only to you, in the current folder. Add --scope user to have it in every project:

Terminal window
claude mcp add --transport http --scope user naratica https://yoursite.ro/mcp

Or, to share it with everyone working in a project, put it in a .mcp.json file at the project root:

{
"mcpServers": {
"naratica": {
"type": "http",
"url": "https://yoursite.ro/mcp"
}
}
}

Then sign in:

  1. Start Claude Code and type /mcp.
  2. Choose naratica and select the option to authenticate. Your browser opens your site’s sign-in page.
  3. Sign in with your CMS account, tick the permissions on the consent screen and select Allow. The permissions are the same as for Claude.
  4. Go back to Claude Code. The server now shows as connected.

To sign out, open /mcp, choose naratica and select Clear authentication, or run claude mcp logout naratica. To end the connection on your site’s side as well, disconnect it in Apps › AI assistants.

Add your outlet to ~/.cursor/mcp.json to use it in every project, or to .cursor/mcp.json in a project folder for that project only:

{
"mcpServers": {
"naratica": {
"url": "https://yoursite.ro/mcp"
}
}
}

Leave out headers and auth: your site sets up the sign-in for Cursor by itself.

Then open Cursor’s MCP settings (Customize in the sidebar), find naratica and start the sign-in there. Your browser opens your site’s sign-in page: sign in with your CMS account, tick the permissions and select Allow.

  • Each tool you connect (Claude, Claude Code, Cursor) is a separate connection in Apps › AI assistants, with its own permissions.
  • If you change your CMS password, every assistant loses access and you sign in again.
  • See What the assistant can do for the tools, and Example prompts for ideas.