MCP Server
MCP Server
Voyager ships an MCP server that exposes 34 LinkedIn tools over the Model Context Protocol. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, or your own agent — can call LinkedIn APIs through natural tool use.
Setup
1. Configure .mcp.json
Add the Voyager server to your project’s .mcp.json (or Claude Desktop’s config):
2. Environment Variables
3. Requirements
- Bun runtime
@modelcontextprotocol/sdk(included in project dependencies)
You can test the server directly from the command line before connecting an AI client:
The server communicates over stdio — type JSON-RPC messages to interact manually.
Tool Categories
The MCP server registers all 34 tools from Voyager’s chat tool library. Each tool maps directly to one or more Voyager API endpoints.
Profile
Search
Messaging
Connections
Engagement
Posts & Feed
Companies
Groups
Session
SalesNav
SalesNav tools require li_a and li_ep_auth_context cookies synced in your session. See the SalesNav guide for details.
Tool Annotations
Tools that mutate LinkedIn state are annotated with destructiveHint: true. MCP clients like Claude Code will prompt for confirmation before executing these:
All other tools are annotated with readOnlyHint: true — they only read data and are safe to run without confirmation.
Destructive tools perform real actions on LinkedIn. There is no undo for sent messages, connection requests, or published posts. MCP clients should confirm with the user before calling these tools.
Architecture
The MCP server (src/mcp-server.ts) is a thin adapter:
- It imports the same
CHAT_TOOLSarray used by the AI Chat endpoint - Each tool is registered with the
@modelcontextprotocol/sdkMcpServerclass - Tool calls are routed to the Voyager HTTP API using the configured API key
- Results are returned as JSON text content
The server uses stdio transport — the MCP client spawns it as a subprocess and communicates over stdin/stdout. No network ports are opened.
Example Session
With the MCP server configured, you can ask an AI agent questions in natural language:
The AI decides which tools to call, chains them as needed, and formats the results — all through the standard MCP protocol.