Install
$ agentstack add mcp-sukarth-perplexity-web-mcp-bridge ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Perplexity Web MCP Bridge
[](https://www.npmjs.com/package/perplexity-web-mcp-bridge) [](https://opensource.org/licenses/MIT) [](https://github.com/sukarth/perplexity-web-mcp-bridge/issues)
A bridge that enables Perplexity's web interface to use MCP (Model Context Protocol) tools and servers, allowing for seamless integration of local data sources, APIs, and custom tools directly into your Perplexity chat experience.
🚀 Quick Start
# Install and run the bridge
npx perplexity-web-mcp-bridge
# Or install globally
npm install -g perplexity-web-mcp-bridge
perplexity-web-mcp-bridge
Then install the companion browser extension from the Browser Extension Repository.
✨ Features
- Seamless Integration: Use MCP tools directly from Perplexity's chat interface
- Local Data Access: Connect to local databases, filesystems, and APIs
- Custom Tools: Extend Perplexity's capabilities with your own MCP servers
- Real-time Bridge: WebSocket-based communication for instant responses
- Easy Configuration: Simple JSON configuration for MCP server management
- Cross-Platform: Works on Windows, macOS, and Linux
🏗️ Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Perplexity │ │ Bridge │ │ MCP Servers │
│ Web Interface │◄──►│ (WebSocket) │◄──►│ (GitHub, etc) │
│ + Extension │ │ CLI Tool │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
The bridge consists of three main components:
- CLI Tool (this repository): Runs a WebSocket server that connects to MCP servers
- Browser Extension: Injects MCP capabilities into Perplexity's web interface
- Configuration System: Manages MCP server connections and settings
📦 Installation & Usage
Prerequisites
- Node.js 18+
- npm or yarn
- Chrome/Chromium browser
CLI Tool Installation
Option 1: Run directly with npx (Recommended)
npx perplexity-web-mcp-bridge
Option 2: Global installation
npm install -g perplexity-web-mcp-bridge
perplexity-web-mcp-bridge
Option 3: Local development
git clone https://github.com/sukarth/perplexity-web-mcp-bridge.git
cd perplexity-web-mcp-bridge
npm install
npm start
Run as a Background Service
This CLI tool/server can also be run as a background service on Windows, macOS, and Linux using a another tool like BG-TM or PM2, so that the terminal window does not need to be kept open for the server to keep running.
Starting the server
First, install BG-TM (globally):
npm install -g @sukarth/bg-tm
Then, start the server:
bg-tm run "npx perplexity-web-mcp-bridge"
Stopping the server
First list all running processes to find the correct process name or ID:
bg-tm list
Then, stop the server using its name:
bg-tm stop
Please check the BG-TM documentation for more information.
For using pm2 for running the server in the background, please refer to the pm2 documentation. Note that pm2 is not properly supported for Windows for this use case.
Browser Extension Installation
The browser extension is available in a separate repository: perplexity-web-mcp-extension
- Download and install the extension from the repository
- Enable it in Chrome
- The extension will automatically connect to the bridge
⚙️ Configuration
Basic Configuration
Create a configuration file at ~/.perplexity-mcp/config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "your-github-token-here"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
}
}
}
Available MCP Servers
Popular MCP servers you can integrate:
- GitHub:
@modelcontextprotocol/server-github- Repository management - Filesystem:
@modelcontextprotocol/server-filesystem- Local file operations - PostgreSQL:
@modelcontextprotocol/server-postgres- Database queries - Brave Search:
@modelcontextprotocol/server-brave-search- Web search - SQLite:
@modelcontextprotocol/server-sqlite- SQLite database access
Configuration Options
| Option | Description | Default | |----------|----------------------------|-----------------------------------| | port | WebSocket server port | 54319 | | config | Config file path | ~/.perplexity-mcp/config.json | | dev | Enable verbose logging | false |
Example Commands
# Start the bridge with default settings
npx perplexity-web-mcp-bridge
# Specify a custom port
npx perplexity-web-mcp-bridge --port 60000
# Use a custom config file
npx perplexity-web-mcp-bridge --config /path/to/config.json
# Enable verbose logging (dev mode)
npx perplexity-web-mcp-bridge --dev
# Combine options
npx perplexity-web-mcp-bridge --port 60000 --config /path/to/config.json --dev
🎯 Usage
- Start the bridge:
``bash npx perplexity-web-mcp-bridge ``
- Install the browser extension from the companion repository
- Open Perplexity.ai in Chrome
- Use MCP tools directly in your conversations:
- "Search my GitHub repositories for React projects"
- "What files are in my ~/Documents folder?"
- "Query my PostgreSQL database for user statistics"
🏗️ Project Structure
perplexity-web-mcp-bridge/
├── bin/
│ └── cli.js # Main CLI entry point
├── src/
│ ├── bridge.js # WebSocket server & MCP management
│ └── config.js # Configuration handling
├── CHANGELOG.md # Version history
├── CONTRIBUTING.md # Contribution guidelines
├── SECURITY.md # Security policy
├── package.json
├── README.md
└── LICENSE
🛠️ Development
Local Development Setup
- Clone the repository:
``bash git clone https://github.com/sukarth/perplexity-web-mcp-bridge.git cd perplexity-web-mcp-bridge ``
- Install dependencies:
``bash npm install ``
- Run in development mode:
``bash npm run dev ``
Available Scripts
npm start- Start the bridge servernpm run dev- Start with verbose loggingnpm test- Run tests (if available)
Project Architecture Deep Dive
For detailed architecture information, see [ARCHITECTURE.md](./md-files/ARCHITECTURE.md).
🤝 Contributing
We welcome contributions! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
Development Process
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Add tests if applicable
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
🐛 Troubleshooting
Common Issues
Bridge won't start
- Check if port 54319 is available
- Verify Node.js version (18+ required)
- Check configuration file syntax
MCP servers not connecting
- Verify MCP server packages are installed
- Check environment variables (API tokens, etc.)
- Review configuration file paths
Extension not working
- Ensure bridge is running
- Check browser console for errors
- Verify extension is enabled
Debug Mode
Run with verbose logging:
npx perplexity-web-mcp-bridge --dev
📝 Changelog
See [CHANGELOG.md](./CHANGELOG.md) for version history.
🔒 Security
For security concerns, please see [SECURITY.md](./SECURITY.md).
📄 License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
🔗 Related Projects
- Perplexity Web MCP Extension - The companion browser extension
- MCP Servers Collection - Official MCP server implementations
🙏 Acknowledgments
- Model Context Protocol (MCP) for the fantastic protocol
- Perplexity AI for the amazing AI models and search interface
- The open source community for MCP server implementations
💖 Support
If this project helps or saves you time, consider supporting my work, as it keeps projects like this free, open source, and maintained:
[](https://github.com/sponsors/Sukarth) [](https://ko-fi.com/sukarth) [](https://buymeacoffee.com/sukarth)
Can't donate? Starring the repo ⭐, reporting bugs, and sharing the project help just as much!
Made with ❤️ by Sukarth
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Sukarth
- Source: Sukarth/perplexity-web-mcp-bridge
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.