Create an MCP Agent
This guide walks you through creating and configuring an MCP agent to connect your Vectorize pipelines to AI desktop tools.
Prerequisites
Before you begin, you'll need:
- A Vectorize account
- An API access token (how to create one)
- Your organization ID (see below)
- A pipeline ID (see below)
Finding your Organization ID
Your organization ID is in the Vectorize platform URL:
https://platform.vectorize.io/organization/[YOUR-ORG-ID]
For example, if your URL is:
https://platform.vectorize.io/organization/ecf3fa1d-30d0-4df1-8af6-f4852bc851cb
Your organization ID is: ecf3fa1d-30d0-4df1-8af6-f4852bc851cb
Finding your Pipeline ID
Navigate to your pipeline in the Vectorize platform. The pipeline ID is shown in:
- The URL:
https://platform.vectorize.io/organization/[org-id]/pipeline/[PIPELINE-ID]
- The pipeline details page
- The "Connect" tab of your pipeline
Step 1: Create the MCP Agent
Navigate to Agents
- Log into your Vectorize workspace
- Click Agents in the left sidebar
- Click Create Agent
Select MCP Agent Type
You'll see three agent types. Select Model Context Protocol (MCP):
- Purpose: Connect to AI desktop tools like Claude Desktop, Claude Code, or Cursor
- No UI: Integrates directly into existing applications
- API-based: Uses secure API keys for authentication
Configure Basic Settings
- Agent Name: Choose a descriptive name (e.g., "Engineering Docs Assistant")
- Description: Explain what this agent provides access to
- Click Create Agent
Your MCP agent is now created but needs functions to be useful.
Step 2: Configure Agent Actions
Configure what actions your MCP agent can perform. These actions become tools in your AI assistants.
Configure Your First Action
In your MCP agent settings:
Basic Information
- Action Name: Use lowercase with hyphens (e.g.,
search-docs
) - Description: Clear explanation for the AI to understand when to use this tool
- Pipeline: Select which pipeline this action queries
Example Configuration
Name: search-engineering-docs
Description: Search internal engineering documentation, architecture guides, and API references
Pipeline: engineering-knowledge-base
Add Multiple Actions
- Configure additional actions as needed
- Each action provides a different capability
- Actions are automatically available to connected tools
Step 3: Generate API Keys
Your MCP agent needs API keys for secure access.
Create an API Key
- Go to your agent's detail page
- Navigate to the Agent API Keys section
- Click Create New Key
- Give it a descriptive name (e.g., "Claude Desktop Key")
- Click Create Key
Save your API key immediately - you won't be able to see it again! Store it securely in a password manager.
Copy Configuration
After creating the key, Vectorize provides a ready-to-use configuration. Copy this for the next step.
Step 4: Connect Your Tool
Now connect your MCP agent to your preferred AI tool. You can use either the hosted Remote MCP server (recommended) or run a local server:
Popular Integrations
- Claude Desktop - Anthropic's desktop application
- Cursor - AI-powered code editor
- Claude Code - Terminal-based AI assistant
Connection Options
Option 1: Remote MCP (Recommended)
Use Vectorize's hosted MCP server - no infrastructure to manage:
{
"mcpServers": {
"vectorize": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://agents.vectorize.io/api/agents/YOUR_AGENT_ID/mcp",
"--header", "Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Option 2: Local MCP Server
For development or special requirements, see Local MCP Server Setup.
General Connection Steps
- Locate your tool's MCP configuration file
- Add your agent's configuration (provided when you created the API key)
- Restart the tool
- Your agent's actions appear as available tools
Step 5: Test Your Integration
Once connected, verify your MCP agent is working:
In Claude Desktop
- Look for your agent in the tools menu
- Ask a question that would use your function
- Claude should automatically invoke the appropriate tool
In Cursor
- Check the MCP panel shows your agent
- Ask Cursor about topics in your pipeline
- It should retrieve relevant information
Managing Your MCP Agent
View Connected Functions
On your agent's detail page, you can see:
- All connected functions
- Usage statistics
- Recent queries
- Error logs (if any)
Update Functions
To modify what your agent can do:
- Go to Metadata → Functions
- Edit existing functions or create new ones
- Changes take effect immediately
Monitor Usage
Track how your MCP agent is being used:
- Query volume
- Response times
- Most-used functions
- User feedback
Best Practices
Function Design
- Clear Names: Use descriptive, action-oriented names
- Detailed Descriptions: Help the AI understand when to use each function
- Focused Purpose: Each function should do one thing well
- Useful Parameters: Add filters that make sense for your use case
Security
- Rotate Keys: Periodically refresh API keys
- Limit Scope: Only expose necessary data through functions
- Monitor Access: Review usage logs regularly
- Test Thoroughly: Verify functions return appropriate data
Performance
- Optimize Pipelines: Ensure underlying pipelines are fast
- Use Filters: Configure functions to return focused results
- Cache When Possible: Leverage Vectorize's built-in caching
Troubleshooting
Agent Not Appearing in Tool
- Verify API key is correctly configured
- Check the tool has been restarted
- Ensure the agent has at least one function
No Results Returned
- Confirm pipeline has indexed documents
- Check function configuration and filters
- Verify metadata filters aren't too restrictive
- Test the pipeline directly in Vectorize UI
Connection Errors
- Validate API key hasn't expired
- Check network connectivity
- Verify correct endpoint URL
- Review error logs in agent dashboard
Next Steps
- Configure MCP Functions - Advanced function configuration
- Integration Guides - Tool-specific setup
- Pipeline Optimization - Improve data quality