- 
                Notifications
    You must be signed in to change notification settings 
- Fork 247
Description
Issue Summary
The Perplexity MCP Server appears to support model configuration through the PERPLEXITY_MODEL environment variable, but this capability is completely undocumented in the README and not obvious from the source code examined.
Description
When setting up the Perplexity MCP Server according to documentation, there is no mention of the ability to configure which Perplexity model is used (sonar-pro, sonar-reasoning-pro, sonar-deep-research). Looking at the source code, the models appear to be hardcoded for each tool:
- perplexity_ask uses "sonar-pro"
- perplexity_research uses "sonar-deep-research"
- perplexity_reason uses "sonar-reasoning-pro"
However, through experimentation, I discovered that the PERPLEXITY_MODEL environment variable is actually respected by the server when set, allowing users to customize which model is used without modifying code. This is an important feature that should be documented.
Steps to Reproduce
- Clone the repository
- Set up the MCP server according to documentation
- Add a PERPLEXITY_MODELenvironment variable to the MCP configuration
{
  "mcpServers": {
    "perplexity-ask": {
      "command": "npx",
      "args": ["-y", "server-perplexity-ask"],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE",
        "PERPLEXITY_MODEL": "sonar-reasoning-pro"
      }
    }
  }
}- Observe that the server uses the specified model rather than defaulting to "sonar-pro"
Expected Behavior
Documentation should clearly indicate:
- Available environment variables for configuration
- Supported models (sonar-pro, sonar-reasoning-pro, sonar-deep-research)
- Default values for each parameter
- How to specify these values in MCP configurations
Actual Behavior
The feature exists but is completely undocumented, leading users to believe they must modify source code to change models. Only through trial and error did I discover this functionality.
Suggested Documentation Updates
- Add a "Configuration" section to the README listing all supported environment variables
- Include a table showing available models and their use cases
- Provide example configurations for different models
- Update the code comments to highlight this configuration option
Environment Details
- Windows 10
- Node.js v18+
- MCP server version: 0.1.0
- Integration with Cursor IDE
Additional Context
The ability to select models is particularly important for users who need reasoning capabilities (sonar-reasoning-pro) versus general knowledge (sonar-pro), as the reasoning model provides significantly different responses to philosophical or analytical questions.