MCP Client Connection Examples

Examples for connecting to a SnapLogic MCP Server using command-line tools.

Overview

After registering your MCP Server, you can connect to it from any compatible MCP client. This page provides examples for two command-line tools that provide lightweight access without requiring a dedicated GUI client or custom application: the Claude CLI and mcp-remote.

For all examples, replace {host} with your SnapLogic instance hostname and {serverId} with the ID from your MCP Server URL. See Get Server URL and Connect Client for how to retrieve the server URL.

Claude CLI

Use the claude command-line interface to register your SnapLogic MCP Server with Claude.

Example syntax:

claude mcp add --transport http <name> <url>

Claude code example:

claude mcp add --transport http snaplogic https://{host}/mcpserver/{serverId}/mcp

Example syntax with bearer token:

claude mcp add --transport http snaplogic https://{host}/mcpserver/{serverId}/mcp --header "Authorization: Bearer your-token"

mcp-remote (NPM)

The mcp-remote NPM package is a lightweight tool for connecting to HTTP-based MCP Servers from clients that only support local (stdio) transport.

Basic syntax:

npx mcp-remote <url>

Example:

npx mcp-remote https://{host}/mcpserver/{serverId}/mcp

Example with Bearer Token:

npx mcp-remote https://{host}/mcpserver/{serverId}/mcp --header "Authorization: Bearer your-token"