Skip to main content

Connecting Vectorize MCP Server to Cursor

This guide shows you how to connect your Vectorize MCP agent to Cursor, enabling Cursor to access your agent's capabilities directly within the editor.

Prerequisites

  • Cursor installed on your computer
  • A Vectorize MCP agent already created with at least one tool configured
  • An API key for your Vectorize agent

Setup Instructions

Step 1: Get Your Agent Configuration

From your Vectorize agent:

  1. Navigate to your agent's Agent API Keys section
  2. If you don't have an API key yet:
    • Click Create New Key
    • Give it a descriptive name (e.g., "Cursor Integration Key")
    • Click Create Key
  3. Note down your Agent ID from the agent overview page
  4. Copy and save your API key - you won't be able to see it again!

Step 2: Configure Cursor MCP Settings

Cursor uses a direct HTTP connection format for MCP servers, which is much simpler than other approaches:

  1. Open Cursor Settings and navigate to MCP configuration

Cursor MCP settings

  1. Add the following configuration:
{
"mcpServers": {
"vectorize-mcp": {
"url": "https://agents.vectorize.io/api/agents/YOUR_AGENT_ID/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
  1. Replace the placeholder values:
    • Replace YOUR_AGENT_ID with your actual Agent ID
    • Replace YOUR_API_KEY with your actual API key

Verification

On successful configuration, you should see your Vectorize agent listed in Cursor's MCP server list.

Vectorize MCP server in Cursor

  • See your Vectorize agent in Cursor's MCP server list
  • Access your agent's tools when working in Cursor
  • Ask Cursor questions that will utilize your Vectorize agent's capabilities

You can click on the name of the tool to enable or disable it.

Using Your MCP Tools

Once connected, you can interact with your Vectorize agent directly in Cursor by:

  • Asking coding questions that relate to your configured tools and knowledge base
  • Requesting code documentation or explanations based on your agent's data
  • Getting context-aware suggestions powered by your Vectorize agent

Cursor will automatically use the appropriate tools based on your queries and the tool descriptions you've configured - make sure your tool descriptions clearly explain what each tool does so Cursor knows when to use them.

Was this page helpful?