Cursor Setup
Enable the Memwyre MCP Server inside Cursor to inject your personal memory directly into your code generation and editing process.
Setup Steps
- Open Cursor Settings (gear icon in the top right, or
Ctrl + Shift + J/Cmd + Shift + J). - Go to Features and scroll down to the MCP section.
- Click + Add New MCP Server.
- Enter the details for the server configuration:
- Name:
Memwyre - Type:
command - Command / Args:bash
npx -y mcp-remote https://server.memwyre.tech/mcp --header "Authorization:Bearer your_api_key_here"
- Name:
- Replace
your_api_key_herewith your Memwyre API Key. - Click Save.
Using Memwyre in Cursor
Once registered, Cursor automatically detects the available tools.
- Type
@Memwyreor ask Cursor's chat assistant: "Search my memory for X" - The assistant will execute
search_memwyreand pull the matching memories into your prompt context.
Detailed Configuration Options
When setting up the MCP server in the Cursor settings UI, you are prompted to configure three key fields:
- Name: A unique identifier for the server inside Cursor's registry (we recommend
Memwyreormemwyre-mcp). - Type: Select
command. This tells Cursor to spawn a local subprocess. Under the hood, Cursor launches this command using your operating system's default shell environment, mapping the standard input and standard output streams directly to the JSON-RPC interface. - Command / Args: The command line string. It uses
npxto auto-fetch the latestmcp-remoteclient package and connect to our secure websocket API gateway athttps://server.memwyre.tech/mcp.
Best Practices: Codebase Context & Project Profiles
Using Memwyre inside Cursor provides a powerful, persistent context layer that survives when you close your IDE or switch branches. Here is how to optimize the integration:
- Semantic Scope Matching: When you ask a question in Cursor Chat or Composer, the LLM parses the current query. If it detects references to environment setup, styling rules, or API paths, it automatically invokes the
search_memwyretool. It retrieves relevant conventions from your vault and injects them as system prompts. - Project-Specific Memories: To organize your memories, use custom tags when adding guidelines via the Web Dashboard (e.g.
[react, tailwind, typescript]). When Cursor queries the vault, the matching engine uses these tags to retrieve only the rules appropriate for the files currently open in your workspace. - Workspace Profiles: Maintain distinct profiles for personal projects vs corporate codebases by configuring separate API tokens for different workspaces.
Troubleshooting Cursor Connection Issues
If the Memwyre server fails to show a green status dot or is stuck in an error loop:
1. Stuck on "Connecting"
- Cause: This usually means Cursor is unable to resolve the
npxexecutable in its environment path. - Fix: Verify that Node.js is installed globally on your machine. Open a terminal and run
node -vandnpx -v. If they are not found, install the Node.js package. On Windows, make sure to restart Cursor after modifying your system environment variables.
2. Status Dot is Red ("Error")
- Cause: Typically indicates an invalid or expired API authorization token, or a network firewall blocking outbound WebSocket traffic.
- Fix: Double check that the token copy-pasted into the
--header "Authorization:Bearer YOUR_KEY"string matches exactly and has no trailing spaces. You can generate a fresh token by going to the Memwyre web dashboard and navigating to Settings → API Keys.
3. Force Reloading the MCP Server
If you update your configuration parameters, Cursor may not reload the process automatically. Click the Refresh / Reload icon next to the Memwyre entry in Cursor Settings > Features > MCP to restart the subprocess.
