Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,35 +138,32 @@ If you'd rather use the standard variables, we support `HTTPS_PROXY` and `HTTP_P

### HTTP Server Deployment

For cloud or shared deployments, you can run the server in HTTP mode:
For cloud or shared deployments, run the server in HTTP mode.

#### Environment Variables

The HTTP server supports these configuration options:
| Variable | Description | Default |
|----------|-------------|---------|
| `PERPLEXITY_API_KEY` | Your Perplexity API key | *Required* |
| `PORT` | HTTP server port | `8080` |
| `BIND_ADDRESS` | Network interface to bind to | `0.0.0.0` |
| `ALLOWED_ORIGINS` | CORS origins (comma-separated) | `*` |

- **`PORT`** - HTTP server port (default: `8080`)
- **`BIND_ADDRESS`** - Network interface to bind to (default: `127.0.0.1` for local, use `0.0.0.0` for hosted)
- **`ALLOWED_ORIGINS`** - Comma-separated list of allowed CORS origins (default: `http://localhost:3000,http://127.0.0.1:3000`, use `*` for public service)
- **`PERPLEXITY_API_KEY`** - Your Perplexity API key (required)

#### Using Docker
#### Docker

```bash
docker build -t perplexity-mcp-server .
docker run -p 8080:8080 -e PERPLEXITY_API_KEY=your_key_here perplexity-mcp-server
```

The server will be accessible at `http://localhost:8080/mcp`

#### Using Node.js Directly
#### Node.js

```bash
npm install
npm run build
npm run start:http
export PERPLEXITY_API_KEY=your_key_here
npm install && npm run build && npm run start:http
```

Connect your MCP client to: `http://localhost:8080/mcp`
The server will be accessible at `http://localhost:8080/mcp`

## Troubleshooting

Expand Down