MCP Server
Airweave’s MCP (Model Context Protocol) server lets AI assistants search through your connected data sources using natural language queries. Perfect for Claude Desktop, Cursor, and any MCP-compatible tool.
What is MCP?
Model Context Protocol is an open standard that enables AI assistants to interact with external tools and data sources. Airweave’s MCP server transforms your collections into searchable knowledge bases that agents can query directly.
Features
Query all your connected data sources with simple questions
Get intelligent responses based on your data
API key authentication with zero setup required
Quick Start
Get Your Credentials
You’ll need two things from your Airweave dashboard:
- API Key (Settings > API Keys)
- Collection ID (e.g.,
my-collection-abc123
)
Configure Your AI Tool
Choose your tool below and add the configuration. No separate server setup needed - your AI tool will automatically run the MCP server when needed.
Cursor
Claude Desktop
VS Code
Requirements
Cursor version 0.45.6 or later
- Open Cursor Settings
- Go to Features > MCP Servers
- Click ”+ Add new global MCP server”
- Add this configuration:
Access via Command+L (Mac) or Ctrl+L (Windows). The Composer Agent will automatically use Airweave for search queries.
Available Tools
The MCP server provides two powerful search tools:
search
Natural language search across your entire collection with optional AI-powered responses.
get-config
View current configuration and connection status to verify everything is working correctly.
No parameters required - shows your collection ID, API endpoint, and connection status.
Environment Variables
AIRWEAVE_API_KEY
Your Airweave API key
AIRWEAVE_COLLECTION
Collection ID to search
AIRWEAVE_BASE_URL
Custom API endpoint
Default: https://api.airweave.ai
Troubleshooting
Missing API key error
- Check your API key is correctly set in the configuration
- Generate a new API key from your Airweave dashboard
- Ensure the API key has access to your collection
Collection not found (404)
- Verify the collection ID is correct (use the readable ID like
my-collection-abc123
) - Check that the collection exists in your Airweave account
- Ensure you have access permissions for the collection
Connection refused
- Check your internet connection
- For self-hosted instances, verify the server is running and
AIRWEAVE_BASE_URL
is correct - Ensure firewall rules allow the connection