Register an MCP Server
MCP (Model Context Protocol) servers extend your AI assistant with external tools. RaiSE manages server registration, configuration, and health checking through the rai mcp command group.
Two Registration Methods
Section titled “Two Registration Methods”Method 1: Install a Package
Section titled “Method 1: Install a Package”For published MCP servers, use rai mcp install:
# npx package (Node.js)rai mcp install "@upstash/context7-mcp" --type npx --name context7
# uvx package (Python)rai mcp install "semgrep-mcp" --type uvx --name semgrep --env SEMGREP_APP_TOKEN
# pip package (Python module)rai mcp install "mcp-server-fetch" --type pip --name fetch --module mcp_server_fetchMethod 2: Scaffold Manually
Section titled “Method 2: Scaffold Manually”For custom or local servers, use rai mcp scaffold:
rai mcp scaffold my-server \ --command "node" \ --args "path/to/server.js" \ --env "MY_API_KEY"Config File Format
Section titled “Config File Format”Both methods create a YAML config in .raise/mcp/. The catalog format:
servers: context7: package: "@upstash/context7-mcp" type: npx description: "Documentation lookups for any library via Context7" recommended_for: all
github: package: "@modelcontextprotocol/server-github" type: npx env: [GITHUB_TOKEN] description: "GitHub repository operations" recommended_for: all
semgrep: package: "semgrep-mcp" type: uvx env: [SEMGREP_APP_TOKEN] description: "SAST + SCA + secret detection" recommended_for: allConfig fields:
package— Package identifier for installationtype—npx,uvx, orpipmodule— Python module name (pip only)env— Required environment variable namesdescription— Human-readable purposerecommended_for— Language list, orallfor universal
Verification
Section titled “Verification”After registration, verify your server works:
# List registered serversrai mcp list
# Check server healthrai mcp health context7
# List available tools on a serverrai mcp tools context7
# Call a specific toolrai mcp call context7 resolve-library-id --args '{"libraryName": "react"}'Example: Registering Context7
Section titled “Example: Registering Context7”Context7 provides documentation lookups for any library. Here is the full flow:
# Installrai mcp install "@upstash/context7-mcp" --type npx --name context7
# Verifyrai mcp health context7rai mcp tools context7No environment variables needed. The server is immediately available to your AI assistant for documentation queries.