AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Configure MCP Servers in Raycast AI: The macOS Power User Guide

Vanessa Morais · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

For macOS power users and developers, the bottleneck in AI-assisted workflows has rarely been model intelligence—it has been model isolation. Standard AI assistants live inside browser tabs, sandboxed code editors, or siloed desktop applications. Raycast AI fundamentally alters this paradigm by embedding model capabilities directly into the global macOS command bar. By integrating Anthropic's Model Context Protocol (MCP), Raycast AI extends beyond static application shortcuts into an omni-present, system-wide agent capable of reading local file trees, triaging GitHub pull requests, inspecting PostgreSQL databases, and dispatching developer toolchains from anywhere in macOS.

At 365Finds, our stance is unequivocal: Raycast AI paired with MCP is the most ergonomically superior AI orchestration layer available on macOS today. While IDE-based clients like Cursor confine tool execution to your code repository and standalone clients like Claude Desktop lock you inside a heavy windowed interface, Raycast AI provides zero-latency overlay execution via a single keystroke. However, leveraging this power requires understanding how Raycast executes MCP clients under macOS process management, properly structuring mcp-config.json, and circumventing the operating system's strict environment isolation.


Prerequisites and System Architecture

Before configuring MCP servers in Raycast AI, ensure your system meets the baseline requirements:

How Raycast Implements MCP

Raycast operates as an MCP Host (Client) that communicates with external MCP servers through two standardized transport layers:

  1. Standard Input/Output (stdio): Raycast spawns a local background process (such as a Node.js or Python binary) and communicates with it via JSON-RPC piped across standard input and standard output. This transport is ideal for local file inspection, Git manipulation, and database access.
  2. HTTP (Streamable HTTP / SSE): Raycast establishes a connection to a remote web service over HTTP. Raycast natively manages authentication flows, supporting Dynamic OAuth (Dynamic Client Registration with PKCE), Static OAuth (Client ID and Secret), and custom authorization headers.

Once a server is registered, Raycast discovers its exposed tools and automatically exposes them inside AI Chat, Quick AI, and AI Commands via @-mentions and root search commands.


Configuration Method 1: The Interactive UI Flow

The most accessible way to connect an MCP server is through Raycast's native interface:

  1. Trigger Raycast (⌥ Space or your configured hotkey) and run the command Manage MCP Servers.
  2. Press ⌘ N (or select the Install New Server action) to open the setup form.
  3. Select your transport type:
    • For local CLI utilities, choose Standard Input/Output. Enter the executable command (e.g., npx), command arguments, and required environment variables.
    • For remote services, choose HTTP. Enter the endpoint URL, optional HTTP headers, and OAuth parameters.
  4. Provide a recognizable Name, select an icon, and optionally add Custom Instructions to steer how Raycast AI prompts the tools.
  5. Press ⌘ ↵ (Install MCP Server). Raycast initializes the connection, validates the transport, and pulls down the server's tool manifest.

Configuration Method 2: Direct mcp-config.json Management

For engineers managing complex environments or migrating from Claude Desktop, editing Raycast's primary configuration file directly is dramatically faster and allows version-controlled, declarative setups.

Locating the Configuration File

Raycast stores non-development MCP configurations in a centralized JSON file located within its extension support directory:

~/Library/Application Support/Raycast/extensions/mcp-config.json

The fastest way to open this file without digging through hidden library paths is:

  1. Open Raycast and launch Manage MCP Servers.
  2. Press ⌘ K to open the Action Panel.
  3. Select Show Config File in Finder (or open it directly in your code editor).

Configuration Schema

The mcp-config.json file uses a standard schema matching Claude Desktop's structure:

{
  "mcpServers": {
    "filesystem": {
      "command": "/opt/homebrew/bin/npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/username/Developer",
        "/Users/username/Documents/Notes"
      ],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      }
    },
    "github": {
      "command": "/opt/homebrew/bin/npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_yourPersonalAccessTokenHere",
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      }
    },
    "postgres": {
      "command": "/opt/homebrew/bin/npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://postgres:password@localhost:5432/analytics_dev"
      ],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      }
    },
    "git": {
      "command": "/opt/homebrew/bin/uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "/Users/username/Developer/core-monorepo"
      ],
      "env": {
        "PATH": "/opt/homebrew/bin:/Users/username/.local/bin:/usr/local/bin:/usr/bin:/bin"
      }
    }
  }
}

Whenever you modify mcp-config.json, open Manage MCP Servers in Raycast and trigger Refresh (⌘ R) to restart server processes and reload tool definitions.


Production Recipes for Developer Toolchains

To illustrate how macOS power users bridge local workflows with Raycast AI, consider these four battle-tested configurations.

1. Local Filesystem Integration

The official filesystem server grants Raycast AI direct read and write access to explicit directories.

{
  "command": "/opt/homebrew/bin/npx",
  "args": [
    "-y",
    "@modelcontextprotocol/server-filesystem",
    "/Users/username/Developer/projects",
    "/Users/username/Downloads"
  ]
}

2. GitHub Developer Automation

The GitHub MCP server equips Raycast AI with the ability to query repositories, search pull requests, check CI runs, and draft issues.

{
  "command": "/opt/homebrew/bin/npx",
  "args": [
    "-y",
    "@modelcontextprotocol/server-github"
  ],
  "env": {
    "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

3. Local PostgreSQL & SQLite Inspection

Database servers allow Raycast AI Chat to inspect database schemas, write analytical queries, and examine local development data without launching standalone GUI clients like TablePlus or pgAdmin.

{
  "command": "/opt/homebrew/bin/npx",
  "args": [
    "-y",
    "@modelcontextprotocol/server-postgres",
    "postgresql://postgres:postgres@127.0.0.1:5432/my_dev_db"
  ]
}

4. Remote HTTP & Cloud Integrations (Linear, Sentry, Custom Gateways)

For team trackers like Linear, Raycast connects natively over HTTP. In Install MCP Server, configure:

Upon saving, select Sign In in Raycast's prompt. Raycast completes the OAuth 2.0 PKCE challenge in your default browser, securely encrypting the resulting refresh and access tokens locally.


The macOS Power User Trap: Environment & PATH Troubleshooting

The single most common failure mode when setting up local MCP servers in Raycast is the infamous process spawning error:

spawn npx ENOENT
// or
spawn uvx ENOENT

Why This Happens

On macOS, terminal shells (zsh, bash) load user environment variables from startup scripts like ~/.zshrc, ~/.bash_profile, and system paths managed by Homebrew (/opt/homebrew/bin on Apple Silicon or /usr/local/bin on Intel) or version managers like nvm, fnm, asdf, or mise.

In contrast, Raycast is a graphical macOS application launched by Apple's launchd daemon. By default, GUI applications inherit a bare-bones system PATH (typically /usr/bin:/bin:/usr/sbin:/sbin). When Raycast attempts to spawn npx or uvx directly, the system cannot locate the binary.

The Two-Part Fix

  1. Use Absolute Paths for Commands: Run which npx or which uvx in your terminal. Replace bare command names with their full paths:

    • Apple Silicon Homebrew: /opt/homebrew/bin/npx
    • Intel Homebrew: /usr/local/bin/npx
    • Custom uv path: /Users/username/.local/bin/uvx
  2. Inject the PATH Environment Variable: Specifying /opt/homebrew/bin/npx alone is often insufficient. npx is a wrapper script that subsequently invokes the node binary. If node's parent directory is missing from PATH, the process fails. Always include an explicit PATH inside the server's env block in mcp-config.json:

"env": {
  "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
}

After modifying system paths or global Node packages, restart Raycast (⌘ Q and reopen) to ensure all background process supervisors reload.


Security Safeguards & Tool Execution Governance

Granting an AI model read and write access to your filesystem, GitHub repositories, and local databases introduces operational risks. Raycast provides robust permission controls to safeguard your workstation.

Tool Execution Permissions

Navigate to Raycast Settings → AI → Tools to configure the global permission policy:

In any prompt requiring approval, press ↵ to allow once, ⌘ ↵ to add the tool to Globally Allowed Tools, or Esc to deny execution.


Daily Workflow: How to Interact with MCP in Raycast

Once your MCP servers are running, Raycast exposes their capabilities seamlessly across the desktop environment:

Scoped Queries via @-mentions

Rather than overloading every AI prompt with every tool from every connected server, scope your intent using @:

Root Search "Ask" Commands

Raycast automatically registers dedicated commands in Root Search for each active MCP server (e.g., Ask Filesystem, Ask GitHub, Ask Linear). Hitting Return on these commands opens Quick AI with the server pre-selected.

Steering Behavior with Custom Instructions

Every server entry in Manage MCP Servers includes a Custom Instructions field. Use this to eliminate repetitive prompting and enforce formatting preferences:


365Finds Institutional Assessment & Recommendations

Evaluation DimensionRaycast AI + MCPClaude DesktopCursor / VS Code
System AccessibilityGlobal macOS overlay (⌥ Space); zero-window footprintDedicated desktop window; high context-switch frictionEditor-bound; restricted to active workspace
Tool DiversityFilesystem, shell, developer tools, SaaS APIsGeneral MCP serversPrimarily file edits, terminal, and codebase indexing
Configuration FrictionModerate; requires managing macOS GUI PATH isolationLow; standard JSON configLow to moderate; built-in IDE settings
Token & Latency OverheadRequires disciplined @-mention usage to avoid schema bloatHigh if many servers loaded globallyManaged within editor context window
365Finds RecommendationPrimary OS orchestrator for developers & power usersBest for long-form research and artifact writingBest for deep code refactoring & active programming

The 365Finds Bottom Line

Raycast AI with MCP bridges the final mile between conversational AI and tangible macOS system administration. It is not an IDE replacement, nor is it meant for multi-thousand-line code refactoring. Instead, it serves as the ultimate rapid-response cockpit for power users.

By taking the time to configure mcp-config.json with explicit paths, scoping filesystem servers to bounded project directories, and selectively engaging tools via @-mentions, macOS developers can achieve an unprecedented level of daily operating velocity.


References