> ## 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.

![Cover Image](https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cover/cursor.png?fit=max\&auto=format\&n=4JB7OCBLDkpjkRT-\&q=85\&s=5c709e55c98be2f5e43e3028e2827ed1)

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](https://docs.membit.ai/access-and-auth.md)
* Basic familiarity with Cursor's interface and AI features

## Setting Up Membit MCP Integration

Follow these steps to integrate Membit with your Cursor environment:

**1. Access Cursor Settings**

Open Cursor and navigate to the settings by clicking on the settings icon or using the keyboard shortcut.

![Cursor settings interface showing configuration options](https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/setting.png?fit=max\&auto=format\&n=4JB7OCBLDkpjkRT-\&q=85\&s=d20f8a4a5217054a731589aab46fb903)

**2. Navigate to Tools & Integrations**

In the settings menu, locate and click on **Tools & Integrations** to access external service configurations.

![Cursor tools and integrations settings page](https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/tools.png?fit=max\&auto=format\&n=4JB7OCBLDkpjkRT-\&q=85\&s=0ab609ca381d95141d325e8d258f5a29)

> [!TIP]
>
> The Tools & Integrations section allows you to connect external services and tools to enhance Cursor's capabilities.

**3. Add Custom MCP**

Click **Add Custom MCP** to create a new Model Context Protocol integration.

**4. 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.

**Configuration Details:**

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

**5. Enable Membit Remote MCP**

After saving the configuration, turn on the **Membit Remote MCP** tool to activate the integration.

![Cursor interface showing how to enable Membit Remote MCP tool](https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/turn-on.png?fit=max\&auto=format\&n=4JB7OCBLDkpjkRT-\&q=85\&s=f70b4554afc1c1765da7b32068647960)

> [!TIP]
>
> Once enabled, Cursor's AI will have access to Membit's real-time context capabilities when processing your requests.

## Using Membit with Cursor

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

**1. Start a Chat Session**

Open Cursor's chat interface and begin a conversation with the AI assistant.

**2. 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.

![Cursor chat interface showing conversation with real-time context from Membit](https://mintcdn.com/membit/4JB7OCBLDkpjkRT-/images/cursor/talk-with-chat.png?fit=max\&auto=format\&n=4JB7OCBLDkpjkRT-\&q=85\&s=683798b545e317e01be128e7b9a7b424)

Testing Membit integration with Cursor's AI chat

> [!TIP]
>
> Your AI assistant will now provide responses enhanced with current, real-world context from Membit's data feed.

## Troubleshooting

> [accordion] 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] 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] 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] 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] 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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.