Perplexity MCP Server + MCPHub (mcp.nvim): Complete MCP Integration
Perplexity MCP Server is a MCP server that The official MCP server implementation for Perplexity API Platform. Provides real-time web search, deep research, and advanced reasoning capabilities through Sonar AI models and the Search API..
When integrated with MCPHub (mcp.nvim), you can:
- Direct web search using Perplexity Search API with ranked results
- General-purpose AI with real-time web integration for everyday questions
- Comprehensive research with thorough analysis and citations
This guide provides step-by-step instructions to set up Perplexity MCP Server in MCPHub (mcp.nvim), including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- Perplexity MCP Server will be fully integrated and operational
- You can use Perplexity MCP Server tools directly in MCPHub (mcp.nvim)
- All Perplexity MCP Server capabilities will be available for your workflows
- Access to 4 different tools
Prerequisites
Before starting, ensure you have:
- Node.js 18+
- npm or npx
- Perplexity API key
- Your Perplexity API key for authentication with Sonar models
- MCPHub (mcp.nvim) installed and configured
- Compatible operating system (Neovim 0.9+, Windows, macOS, Linux)
Installation
Step 1: Install Perplexity MCP Server
Install using npm:
npx -y perplexity-mcp
Verify installation:
Server starts and connects to MCP client
Configuration
Step 2: Configure MCPHub (mcp.nvim)
- Open MCPHub (mcp.nvim) settings
- Navigate to MCP server configuration
- Add Perplexity MCP Server server with appropriate settings
- Save and restart if needed
Examples
Once configured, you can use Perplexity MCP Server in MCPHub (mcp.nvim):
Real-Time Web Search
Search the web for current information and get ranked results
Ask MCPHub (mcp.nvim): "Search for the latest Model Context Protocol updates and announcements"
Expected Result: Ranked search results with titles, URLs, snippets, and metadata about MCP developments
Quick Factual Queries
Get immediate answers to questions with web-backed accuracy
Ask MCPHub (mcp.nvim): "What are the system requirements for running Claude Desktop?"
Expected Result: Accurate, sourced answer with current system requirements and download links
Deep Technical Research
Comprehensive analysis of complex technical topics
Ask MCPHub (mcp.nvim): "Research the differences between WebSocket, SSE, and HTTP polling for real-time applications"
Expected Result: Detailed comparison with citations, use cases, performance considerations, and recommendations
Complex Problem Analysis
Advanced reasoning for technical decision-making
Ask MCPHub (mcp.nvim): "Analyze whether I should use Redis, Memcached, or PostgreSQL for caching in my Node.js application"
Expected Result: Step-by-step reasoning with trade-off analysis, benchmarks, and contextual recommendations
Testing Your Setup
- Launch MCPHub (mcp.nvim)
- Verify Perplexity MCP Server is available in the tools list
- Test basic Perplexity MCP Server functionality
Troubleshooting
Common Issues
API Key Invalid or Missing
Symptoms: 401 Unauthorized errors, Authentication failed messages, API key not found
Cause: PERPLEXITY_API_KEY environment variable not set or invalid
Solution:
- Verify API key is set: echo $PERPLEXITY_API_KEY
- Obtain valid key from https://www.perplexity.ai/account/api
- Ensure key is exported in shell: export PERPLEXITY_API_KEY="pplx-xxx"
- Check for typos or extra whitespace in key value
Connection Timeout
Symptoms: Request timeout errors, Server not responding, Long delays with no response
Cause: Network issues or timeout too short for deep research queries
Solution:
- Increase timeout: export PERPLEXITY_TIMEOUT_MS=900000
- Check internet connectivity
- Verify firewall allows outbound HTTPS to api.perplexity.ai
- For deep research, expect longer response times (2-5 minutes)
Proxy Configuration Errors
Symptoms: Connection refused, Proxy authentication failed, Network unreachable in corporate environment
Cause: Incorrect or missing proxy configuration for enterprise networks
Solution:
- Set proxy: export PERPLEXITY_PROXY=https://user:pass@proxy:port
- Alternative: export HTTPS_PROXY=https://proxy:port
- Verify proxy credentials are correct
- Contact IT if proxy blocks API requests
NPX Installation Fails
Symptoms: npx command not found, Package download errors, Permission denied
Cause: Node.js not installed or npm registry issues
Solution:
- Install Node.js 18+ from https://nodejs.org
- Clear npm cache: npm cache clean --force
- Try with explicit version: npx -y perplexity-mcp@latest
- Check npm registry connectivity
Strip Thinking Parameter Not Working
Symptoms: Response contains <think>...</think> tags, Excessive context token usage
Cause: strip_thinking parameter not passed correctly
Solution:
- Include strip_thinking: true in perplexity_reason calls
- This removes internal reasoning from responses
- Reduces token usage while preserving final answers
Plugin Not Loading or Command Not Found
Symptoms: :MCPHub command not recognized, Plugin not appearing in :PlugStatus, No errors but plugin inactive
Cause: Plugin not properly installed or configuration error
Solution:
- Verify plugin is added to plugin manager configuration
- Run plugin manager install command (:PackerInstall, :PlugInstall, or Lazy auto-install)
- Check for errors in :messages after sourcing config
- Ensure dependencies (plenary.nvim, nui.nvim) are installed
- Restart Neovim completely
MCP Server Won't Start
Symptoms: Server status shows "Error", Red indicator on server, Server immediately stops after starting
Cause: Invalid server configuration or missing dependencies
Solution:
- Verify npx is installed and in PATH: npx --version
- Check MCP server package exists: npx -y @modelcontextprotocol/server-filesystem --help
- Review server configuration in setup() - verify command and args
- Check server logs in MCPHub interface for detailed error messages
- Ensure required environment variables are set (e.g., GITHUB_TOKEN)
- Test server manually in terminal: npx -y @modelcontextprotocol/server-filesystem /path
UI Not Displaying Correctly
Symptoms: Blank window, Garbled text, Layout issues, Missing borders
Cause: Terminal or Neovim rendering issues
Solution:
- Verify Neovim version is 0.9 or higher: nvim --version
- Try different border style in ui.border config ("single", "double", "rounded")
- Check terminal supports Unicode and 256 colors
- Update nui.nvim dependency to latest version
- Test with different colorscheme to rule out theme conflicts
Integration with Avante/CodeCompanion Not Working
Symptoms: AI assistant not seeing MCP tools, Tool calls failing, Integration not recognized
Cause: Integration not enabled or incompatible versions
Solution:
- Verify integration is enabled in config: integrations.avante = true
- Ensure Avante.nvim/CodeCompanion.nvim is installed and loaded
- Check versions are compatible - update both plugins to latest
- Restart Neovim after enabling integration
- Check :checkhealth for integration-specific warnings
Marketplace Not Loading
Symptoms: :MCPHubMarketplace shows empty list, Network error in marketplace, Timeout loading servers
Cause: Network connectivity issues or marketplace service unavailable
Solution:
- Verify internet connectivity
- Check firewall allows HTTPS connections
- Try again later if marketplace service is temporarily down
- Review proxy settings if behind corporate firewall
- Check :messages for detailed network error messages
Project-Local Config Not Loading
Symptoms: .mcphub.json ignored, Project servers not appearing, Only global config loaded
Cause: Config file location or format issues
Solution:
- Verify .mcphub.json is in project root (same directory as .git)
- Check JSON syntax is valid using jsonlint or similar tool
- Ensure file name is exactly .mcphub.json (case-sensitive)
- Restart Neovim after creating/modifying project config
- Check file permissions are readable
Perplexity MCP Server not appearing in MCPHub (mcp.nvim)
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check Perplexity MCP Server installation
- Restart MCPHub (mcp.nvim)
- Check logs for error messages
Next Steps
Now that Perplexity MCP Server is integrated with MCPHub (mcp.nvim):
- Explore all Perplexity MCP Server capabilities through MCPHub (mcp.nvim)
- Check out other MCP servers that work with MCPHub (mcp.nvim)
- Join the MCP community for tips and support
- Consider contributing to Perplexity MCP Server development
Need Help?
- Search for Perplexity MCP Server documentation
- Check the MCPHub (mcp.nvim) MCP guide
- Join the MCP community discussions