by Close
Search leads and contacts
Returns the leads or contacts that match a query, such as contacts with CTO in their title or leads not contacted in the past week.
Updated Sep 27, 2026
search-leads.md
Search leads and contacts
Returns the leads or contacts that match a query, such as contacts with CTO in their title or leads not contacted in the past week.
Note: The API returns only IDs unless you pass _fields. The MCP tool takes a plain-language query and pages with paginate_search.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "close": { "url": "https://mcp.close.com/mcp" } } }
Call the MCP tool search.
Server URL: https://mcp.close.com/mcp
API (official)
- Base URL: https://api.close.com/api/v1
- Endpoint:
POST /data/search/ - Auth: send the header
Authorization: Basic $CLOSE_API_KEY - Docs: https://developer.close.com/api/overview
Note: CLOSE_API_KEY holds the base64 of <api key>:, the key with a trailing colon.
Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.