Quick start
1. Create an API key
Go to Settings > API in your Leonar dashboard and create a key with the scopes your assistant needs (see Scopes).2. Configure your MCP client
Add the Leonar MCP server to your client’s configuration. The easiest way is via our NPX package, which works with all MCP clients.- NPX package (recommended)
- Direct HTTP
Install nothing — just add this to your config:Requires Node.js 18+. The package (
@leonar/mcp) is a lightweight bridge that forwards MCP messages to the Leonar server.3. Start using tools
Once connected, your AI assistant has access to the same safe workflow tools used by Leonar’s integrated AI agent, plus 4 contextual resources. Ask it things like:- “Search for backend engineers in Paris”
- “Show me the context for the Senior PM project”
- “Find sourcing candidates for this project”
Authentication
The MCP server uses the sameleo_ API keys as the REST API. Pass your key as a Bearer token in the Authorization header.
Transport
The MCP server uses Streamable HTTP transport over a single endpoint (POST /api/mcp). It is stateless — no session management is required. All MCP clients that support the url transport type can connect directly.
Available resources
The server also exposes these read-only resources:| Resource URI | Description |
|---|---|
leonar://workspace/context | Workspace metadata, billing state, and lightweight counters |
leonar://accounts/connected | Active connected accounts available for sending and sourcing |
leonar://team/members | Workspace members and roles |
leonar://pipeline/templates | Pipeline templates with their stages |
Available tools
Search & context
| Tool | Scopes | Description |
|---|---|---|
search_leads | contacts:read | Search leads/contacts by text, job title, company, and location. |
get_project_context | projects:read, pipeline:read | Get project context including pipeline stages and candidate counts. |
get_project_sourcing_context | projects:read, pipeline:read, sourcing:read | Get sourcing-specific project context, owners, and available sourcing sources. |
search_candidates | projects:read, sourcing:read | Search sourcing candidates using the same engine as the integrated AI agent. |
suggest_followups | contacts:read | Produce structured follow-up suggestions for selected contacts. |
Memory
| Tool | Scopes | Description |
|---|---|---|
save_user_memory | agents:write | Save a memory item for the current API key owner. |
update_user_memory | agents:write | Update a saved memory item. |
delete_user_memory | agents:write | Soft-delete a saved memory item. |
Tool parameters reference
search_leads
get_project_context
get_project_sourcing_context
search_candidates
suggest_followups
save_user_memory
update_user_memory
delete_user_memory
Example use cases for recruiters
Pipeline review
“Show me the context for the Senior PM project and how many candidates are in each stage.”The assistant calls
get_project_context and summarizes the pipeline without opening the dashboard.Candidate search
“Find backend candidates for our Paris project, excluding already processed people.”Uses
search_candidates with the same sourcing defaults as the integrated AI agent.Outreach status
“Give me three follow-up angles for these contacts before my outreach block.”Uses
suggest_followups to return structured talking points your assistant can turn into drafts.Project sourcing context
“What sourcing sources are available for the Acme frontend project?”Uses
get_project_sourcing_context to inspect owners, pipeline state, and available sourcing providers.Memory assist
“Remember that this workspace prefers concise, founder-style outreach.”Uses
save_user_memory so future agent interactions can reuse durable context.Rate limits
The MCP server shares the same rate limits as the REST API: 1000 requests per hour per API key. Each tool call counts as one request.MCP vs REST API
| MCP Server | REST API | |
|---|---|---|
| Best for | AI assistants (Claude, Cursor, Codex) | Custom integrations, scripts |
| Protocol | Model Context Protocol | HTTP REST |
| Auth | Same leo_ API keys | Same leo_ API keys |
| Scopes | Same scope system | Same scope system |
| Tools | 8 workflow tools + 4 resources | 60+ endpoints (full CRUD) |