> ## Documentation Index
> Fetch the complete documentation index at: https://docs.membit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Integrate real-time context to your Cursor AI Code Editor via Membit MCP.

<img src="https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cover/cursor.png?fit=max&auto=format&n=4JB7OCBLDkpjkRT-&q=85&s=5c709e55c98be2f5e43e3028e2827ed1" alt="Cover Image" className="rounded-lg" noZoom width="1402" height="463" data-path="images/cover/cursor.png" />

Cursor is an AI-powered code editor that enhances your development workflow with intelligent assistance. By integrating Membit with Cursor, you can access real-time social context directly within your coding environment, enabling your AI assistant to provide up-to-date insights about trending topics, current discussions, and breaking news while you work.

## Prerequisites

Before you begin, make sure you have:

* Cursor editor installed ([download here](https://cursor.com))
* A Membit account with an API key [get your API key](/access-and-auth)
* Basic familiarity with Cursor's interface and AI features

## Setting Up Membit MCP Integration

Follow these steps to integrate Membit with your Cursor environment:

<Steps>
  <Step title="Access Cursor Settings">
    Open Cursor and navigate to the settings by clicking on the settings icon or using the keyboard shortcut.

    <Frame>
      <img width="240" src="https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/setting.png?fit=max&auto=format&n=4JB7OCBLDkpjkRT-&q=85&s=d20f8a4a5217054a731589aab46fb903" alt="Cursor settings interface showing configuration options" data-path="images/cursor/setting.png" />
    </Frame>
  </Step>

  <Step title="Navigate to Tools & Integrations">
    In the settings menu, locate and click on **Tools & Integrations** to access external service configurations.

    <Frame>
      <img src="https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/tools.png?fit=max&auto=format&n=4JB7OCBLDkpjkRT-&q=85&s=0ab609ca381d95141d325e8d258f5a29" alt="Cursor tools and integrations settings page" width="1962" height="810" data-path="images/cursor/tools.png" />
    </Frame>

    <Check>
      The Tools & Integrations section allows you to connect external services and tools to enhance Cursor's capabilities.
    </Check>
  </Step>

  <Step title="Add Custom MCP">
    Click **Add Custom MCP** to create a new Model Context Protocol integration.
  </Step>

  <Step title="Configure Membit Remote MCP">
    Paste the following Membit remote MCP configuration into the configuration field:

    ```json theme={null}
    {
      "mcpServers": {
        "membit-mcp": {
          "url": "https://mcp.membit.ai/mcp",
          "headers": {
            "X-Membit-Api-Key": <your-api-key>
          }
        }
      }
    }
    ```

    <Warning>
      Replace `<your-api-key>` with your actual Membit API key. Keep this credential secure and don't share it with unauthorized users.
    </Warning>

    **Configuration Details:**

    * **Server Name**: `membit-remote-mcp`
    * **Command**: Uses npx to run the remote MCP client
    * **Environment**: Empty object for default environment variables
  </Step>

  <Step title="Enable Membit Remote MCP">
    After saving the configuration, turn on the **Membit Remote MCP** tool to activate the integration.

    <Frame>
      <img src="https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/turn-on.png?fit=max&auto=format&n=4JB7OCBLDkpjkRT-&q=85&s=f70b4554afc1c1765da7b32068647960" alt="Cursor interface showing how to enable Membit Remote MCP tool" width="1858" height="754" data-path="images/cursor/turn-on.png" />
    </Frame>

    <Check>
      Once enabled, Cursor's AI will have access to Membit's real-time context capabilities when processing your requests.
    </Check>
  </Step>
</Steps>

## Using Membit with Cursor

Now that the integration is set up, you can start using Membit's real-time context in your development workflow:

<Steps>
  <Step title="Start a Chat Session">
    Open Cursor's chat interface and begin a conversation with the AI assistant.
  </Step>

  <Step title="Ask Context-Aware Questions">
    Try asking questions that benefit from real-time context:

    * "What are the latest trends in web development?"
    * "Tell me about recent discussions in the AI community"
    * "What's currently trending in cryptocurrency?"
    * "Give me insights on the latest tech news"

    <Note>
      When Cursor asks for permission to run tools, click **Run Tool** to allow
      access to Membit's real-time data. Cursor requests permission every time it
      uses external tools. You can bypass these permission prompts by adjusting the
      tool permissions in Cursor settings if desired.
    </Note>

    <Frame caption="Testing Membit integration with Cursor's AI chat">
      <img src="https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/talk-with-chat.png?fit=max&auto=format&n=4JB7OCBLDkpjkRT-&q=85&s=683798b545e317e01be128e7b9a7b424" alt="Cursor chat interface showing conversation with real-time context from Membit" width="1434" height="2032" data-path="images/cursor/talk-with-chat.png" />
    </Frame>

    <Check>
      Your AI assistant will now provide responses enhanced with current, real-world context from Membit's data feed.
    </Check>
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Custom MCP Configuration Issues">
    **Problem**: Custom MCP configuration fails to load or save

    **Solutions**:

    Verify the JSON configuration syntax is valid (no trailing commas, proper quotes)

    Ensure the server name `membit-mcp` is unique and not conflicting

    Check that the URL is exactly `https://mcp.membit.ai/mcp`

    Try restarting Cursor after configuration changes

    Validate the JSON structure matches the required format exactly
  </Accordion>

  <Accordion title="API Key Authentication Problems">
    **Problem**: Membit API key authentication is failing

    **Solutions**:

    Verify your API key is correctly placed in the headers configuration

    Ensure the header name is exactly `X-Membit-Api-Key` (case-sensitive)

    Check that there are no extra spaces or characters around the API key

    Confirm your Membit API key is active and has sufficient credits

    Try generating a new API key if the current one isn't working
  </Accordion>

  <Accordion title="Tool Permission Prompts">
    **Problem**: Cursor keeps asking for permission to run tools

    **Solutions**:

    Click "Run Tool" when prompted to allow Membit access for that session

    Go to Cursor settings → Tools & Integrations → adjust tool permissions

    Enable "Auto-approve safe tools" if available in your Cursor version

    Consider the security implications before disabling permission prompts

    Use "Always allow" option when prompted if you trust the Membit integration
  </Accordion>

  <Accordion title="MCP Server Not Responding">
    **Problem**: Cursor can't connect to Membit MCP server

    **Solutions**:

    Check your internet connection and firewall settings

    Verify the Membit MCP server is operational (try accessing the URL in browser)

    Ensure Cursor has network access permissions on your system

    Try toggling the MCP integration off and on again

    Check Cursor's console/logs for specific error messages
  </Accordion>

  <Accordion title="AI Assistant Not Using Membit Tools">
    **Problem**: Chat responses don't include real-time context

    **Solutions**:

    Make requests more explicit: "Use Membit to find current information about..."

    Verify the Membit Remote MCP tool is enabled and active

    Check that your questions relate to topics likely to have recent social media discussion

    Try asking about trending topics that would benefit from real-time context

    Ensure you're allowing tool usage when Cursor requests permission
  </Accordion>
</AccordionGroup>
