This guide walks you through deploying the Algolia Model Context Protocol (MCP) server on Render using the provided blueprint. The MCP server acts as a bridge between AI models and Algolia search, enabling intelligent search and data management capabilities for the DevStash ecosystem.
Before starting, ensure you have:
- A Render account (free tier works)
- An Algolia account with an application and index set up
- Your Algolia credentials ready:
- Application ID
- API Key (Admin API Key for write operations)
- Index Name
The fastest way to deploy is using render blueprint:
- Create a new repository called
algolia-mcp-renderon GitHub. - Create a file called
render.yamland paste the content from algolia-mcp-blueprint.yaml. - Push the file to your repository
- Login to Render and navigate to your dashboard
- Click "New" → "Blueprint"
- Connect your repository (
algolia-mcp-render) to Render - Customize the service name - make it unique by adding a UUID or your project name
- Click "Apply" to start the deployment
Learn More: For detailed information about Render Blueprint deployments, check the official documentation.
Before applying, you can modify the blueprint:
services:
- type: web
name: your-algolia-mcp-server-name # Make this unique
runtime: go
repo: your-repo-name-here
plan: free # or starter/standard for more resources
region: oregon # or your preferred regionAfter deployment, configure these essential environment variables in your Render service:
| Variable | Description | Example |
|---|---|---|
ALGOLIA_APP_ID |
Your Algolia Application ID | ABC123DEF4 |
ALGOLIA_API_KEY |
Admin API Key for write operations | abc123... |
ALGOLIA_WRITE_API_KEY |
Same as API_KEY (legacy support) | abc123... |
ALGOLIA_INDEX_NAME |
Target index name | stashes |
MCP_SERVER_TYPE |
Server type identifier | sse |
MCP_ENABLED_TOOLS |
Comma-separated list of enabled tools | search_read,search_write |
Note: The Algolia MCP Server (golang) has a bug where if you didn't specify any tool or only specify search tool the credentials are not picked from env variables and leads to connection issues.
- Go to your service in the Render dashboard
- Navigate to "Environment" tab
- Add each variable with its corresponding value
- Save changes - this will trigger a redeploy
Security Note: Never commit API keys to your repository. Always use Render's environment variables for sensitive data.
MCP Inspector is the best tool for testing your deployed server:
# Replace YOUR_RENDER_URL with your actual Render service URL
npx @modelcontextprotocol/inspector https://your-algolia-mcp-server.onrender.com/sseConnection Failed
- Verify your Render service is running (check service logs)
- Ensure environment variables are set correctly
- Check if your service URL is accessible
Authentication Errors
- Verify
ALGOLIA_API_KEYhas write permissions - Confirm
ALGOLIA_APP_IDmatches your Algolia application - Check that
ALGOLIA_INDEX_NAMEexists in your Algolia dashboard
Build Failures
- Check Render build logs for Go compilation errors
- Verify the repository structure matches expected paths
Your Algolia MCP server should now be running on Render and ready to power your DevStash ecosystem!