Skip to content

๐Ÿ“‹ MCP Setup Guide: Connecting Two MCP Servers to Perplexity (Local + Remote)ย #332

@gHashTag

Description

@gHashTag

๐Ÿ“‹ MCP Setup Guide: Connecting Two MCP Servers to Perplexity

Status: Local MCP (Mac app) โ€” available now ยท Remote MCP โ€” coming soon
Audience: Developers and agents working on IGLA RACE / Trinity swarm
Platform: macOS (Mac App Store), Perplexity Pro account required


๐ŸŒ What is MCP in Perplexity context?

MCP (Model Context Protocol) lets Perplexity connect to external tools, APIs, and services. Think of it as a universal adapter: each MCP server exposes tools that Perplexity can call during a conversation.

Two types:

Type Where it runs Auth Status
Local MCP Your Mac (stdio) none / local โœ… Available now
Remote MCP Cloud (HTTP/SSE) Bearer token ๐Ÿ”œ Coming soon

๐Ÿ”ง SETUP: Two MCP Servers in Perplexity (Mac App)

Prerequisites

# 1. Install Node.js (required for npx commands)
brew install node

# 2. Install Perplexity Mac App from Mac App Store
# https://apps.apple.com/app/perplexity-ask-anything/id1668000334

# 3. Perplexity Pro subscription required

Step 1 โ€” Install PerplexityXPC Helper

Perplexity App โ†’ Settings โ†’ Connectors โ†’ Install Helper (PerplexityXPC)

This helper allows Perplexity to securely communicate with local MCP servers on your machine.

Step 2 โ€” Add First MCP Server (GitHub / trios)

Settings โ†’ Connectors โ†’ Add Connector โ†’ Simple tab
Field Value
Server Name trios-github
Command npx -y @modelcontextprotocol/server-github
Env var GITHUB_TOKEN=ghp_your_token_here

Or via Advanced JSON tab:

{
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-github"],
  "env": {
    "GITHUB_TOKEN": "ghp_your_token_here"
  }
}

Step 3 โ€” Add Second MCP Server (Linear / trios-railway)

Settings โ†’ Connectors โ†’ Add Connector โ†’ Simple tab
Field Value
Server Name trios-linear
Command npx -y @linear/mcp-server
Env var LINEAR_API_KEY=lin_api_your_key_here

Or via Advanced JSON tab:

{
  "command": "npx",
  "args": ["-y", "@linear/mcp-server"],
  "env": {
    "LINEAR_API_KEY": "lin_api_your_key_here"
  }
}

Step 4 โ€” Verify Both Servers Are Running

Settings โ†’ Connectors โ†’ check "Running" status (green dot)

Both servers must show "Running" before use.

Step 5 โ€” Enable in Chat

Perplexity homepage โ†’ under "Sources" โ†’ toggle ON each connector

๐Ÿ”ฎ REMOTE MCP Setup (coming soon โ€” for trios-mcp server)

When Remote MCP launches, trios-mcp deployed on Railway will connect directly:

{
  "mcpServers": {
    "trios-mcp": {
      "url": "https://trios-mcp.railway.app/sse",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_AUTH_BEARER_TOKEN"
      }
    }
  }
}

This will expose all 13 IGLA RACE tools:

  • mcp.railway.deploy โ€” deploy trainer service
  • mcp.hunt.* โ€” seed hunter operations
  • mcp.exp.next / mcp.exp.claim โ€” EXP_ID management
  • mcp.leaderboard.rank โ€” BPB leaderboard
  • mcp.smoke.race โ€” Gate-0 smoke run
  • mcp.github.issue / mcp.github.pr โ€” GitHub ops

๐Ÿ› ๏ธ ALTERNATIVE: Claude Desktop (works today with Remote MCP)

For immediate use with trios-mcp remote server via Claude Desktop:

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "trios-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector-cli",
        "https://trios-mcp.railway.app/sse"
      ],
      "env": {
        "MCP_AUTH_BEARER": "your_64_char_token"
      }
    },
    "trios-github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

Restart Claude Desktop after editing โ†’ both servers appear in the tool picker.


๐Ÿ–ฅ๏ธ Cursor / Continue.dev Config

// .cursor/mcp.json (repo root)
{
  "mcpServers": {
    "trios-mcp": {
      "url": "https://trios-mcp.railway.app/sse",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    },
    "trios-github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_TOKEN": "ghp_your_token" }
    }
  }
}

โœ… Testing Checklist

[ ] PerplexityXPC helper installed
[ ] Server 1 (trios-github) shows "Running" in Connectors
[ ] Server 2 (trios-linear) shows "Running" in Connectors  
[ ] Both toggled ON under "Sources"
[ ] Test: "Create a GitHub issue in gHashTag/trios"
[ ] Test: "List my Linear issues"
[ ] Verify tool calls appear in activity log

๐Ÿ”‘ Where to Get Tokens

Service Token Location Used For
GitHub https://github.com/settings/tokens โ†’ repo scope trios-github MCP
Linear https://linear.app/settings/api โ†’ Personal API Key trios-linear MCP
Railway https://railway.app/account/tokens trios-mcp server (acc1/acc2/acc3)
Perplexity API https://www.perplexity.ai/settings/api Perplexity MCP server

๐Ÿ“š Related Resources


โš ๏ธ Security note: Never commit API tokens to the repo. Use env vars or .env files in .gitignore. All docs and code in this repo must be written in English.

ฯ†ยฒ + ฯ†โปยฒ = 3 ยท TRINITY ยท MCP-ONLY

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions