Algolia + Windsurf Editor: Complete MCP Integration
Algolia is a MCP server that Use AI agents to provision, configure, and query your Algolia search indices..
When integrated with Windsurf Editor, you can:
- Perform search queries on Algolia indices
- Add or update objects in an index
- Delete objects from an index
This guide provides step-by-step instructions to set up Algolia in Windsurf Editor, including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- Algolia will be fully integrated and operational
- You can use Algolia tools directly in Windsurf Editor
- All Algolia capabilities will be available for your workflows
- Access to 5 different tools
Prerequisites
Before starting, ensure you have:
- Algolia application identifier
- Algolia Admin API key with full permissions
- Default index name for operations
- Windsurf Editor installed and configured
- Compatible operating system (Desktop App)
Installation
Step 1: Install Algolia
Configuration
Step 2: Configure Windsurf Editor
-
Locate your configuration file:
- Windows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json - macOS:
~/.codeium/windsurf/mcp_config.json - Linux:
~/.codeium/windsurf/mcp_config.json
- Windows:
-
Add server configuration:
{
"mcpServers": {
"algolia": {
"command": "algolia",
"args": []
}
}
}
Note: If Algolia requires environment variables, add them to the server configuration:
"env": {
"ALGOLIA_APP_ID": "YourAppID123",
"ALGOLIA_API_KEY": "1234567890abcdef1234567890abcdef",
"ALGOLIA_INDEX_NAME": "products"
}
- Restart Windsurf Editor
Completely quit and restart Windsurf Editor to load the new configuration.
Examples
Once configured, you can use Algolia in Windsurf Editor:
E-commerce Search Management
undefined
Ask Windsurf Editor: "Add new products and configure search relevance"
Expected Result: undefined
Content Discovery Optimization
undefined
Ask Windsurf Editor: "Analyze search patterns and update searchable attributes"
Expected Result: undefined
Real-time Inventory Search
undefined
Ask Windsurf Editor: "Update product availability and remove out-of-stock items"
Expected Result: undefined
Testing Your Setup
- Launch Windsurf Editor
- Verify Algolia is available in the tools list
- Test basic Algolia functionality
Troubleshooting
Common Issues
Tools Not Appearing
Symptoms: Cascade does not see new tools, Hammer icon missing
Cause: Configuration syntax error or server failed to start.
Solution:
- Check the JSON configuration for syntax errors.
- Verify the command (e.g.,
npx,python) is in your system PATH. - Check Windsurf logs for MCP connection errors.
Environment Variables
Symptoms: Authentication failed, Permission denied
Cause: Missing API keys in configuration.
Solution:
- Ensure
envblock is correctly defined inside the server config. - Restart Windsurf after changing environment variables.
Algolia not appearing in Windsurf Editor
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check Algolia installation
- Restart Windsurf Editor
- Check logs for error messages
Next Steps
Now that Algolia is integrated with Windsurf Editor:
- Explore all Algolia capabilities through Windsurf Editor
- Check out other MCP servers that work with Windsurf Editor
- Join the MCP community for tips and support
- Consider contributing to Algolia development
Need Help?
- Search for Algolia documentation
- Check the Windsurf Editor MCP guide
- Join the MCP community discussions