MCP · Updated 27 November 2026
Add the City Contacts MCP server to Cursor
City Contacts runs a remote MCP server at https://citycontacts.app/api/mcp. It speaks Streamable HTTP and reads your API key from the Authorization header as a Bearer token, which Cursor supports directly in mcp.json. Create a key under Settings, API & MCP first; it starts with cc_live_ and is shown once.
Add it to mcp.json
Following Cursor's MCP docs, create ~/.cursor/mcp.json to use the server in every project, or .cursor/mcp.json in a project for that project only. A remote server takes a url and headers:
{
"mcpServers": {
"city-contacts": {
"url": "https://citycontacts.app/api/mcp",
"headers": {
"Authorization": "Bearer cc_live_YOUR_KEY"
}
}
}
}Keep the key out of the file
Cursor expands ${env:NAME} in headers, so you can set CITYCONTACTS_API_KEY in your shell profile and leave the file safe to commit:
{
"mcpServers": {
"city-contacts": {
"url": "https://citycontacts.app/api/mcp",
"headers": {
"Authorization": "Bearer ${env:CITYCONTACTS_API_KEY}"
}
}
}
}Turn it on and try it
Enable City Contacts from Customize in the sidebar. Cursor asks before it runs an MCP tool, and you can expand the call to see its arguments. Then ask:
I'm in Lisbon next week. Who do I know there?
list_cities{"search":"Lisbon"}get_city_contacts{"city":"lisbon-pt"}You know 41 people in Lisbon: 12 mutuals, 17 followers, 9 people you follow and 3 LinkedIn connections. Start with your mutuals, Marta Silva (@martabuilds) and João Pereira (@jp_design). Inês Costa, a product lead you're connected to on LinkedIn, is there too.
The tools Cursor can call:
list_cities: list citiesget_city_contacts: get contacts in a citysync_handle: sync an x handle (starts a paid background job)import_linkedin_connections: import linkedin connections (starts a paid background job)get_sync_status: get sync status
Using Claude? See Claude setup. Comparing servers? See the LinkedIn and X MCP server roundups.
Questions
Does Cursor need OAuth for City Contacts?
No. City Contacts takes an API key as a Bearer token, and Cursor sends whatever you put under headers in mcp.json. There is no sign-in step.
Can I use an envFile for the key?
No. Cursor only supports envFile for local (stdio) servers. For a remote server like City Contacts, set CITYCONTACTS_API_KEY in your shell profile or system environment and reference it with ${env:CITYCONTACTS_API_KEY}.
Does it work in Cursor's Cloud Agents?
Hosted Cloud Agents don't read ~/.cursor/mcp.json. They use the servers configured at cursor.com/agents and your team's servers, so add City Contacts there if you want it in Cloud Agents.
The server doesn't connect. Where do I look?
Open the Output panel (Cmd+Shift+U) and choose MCP Logs from the dropdown. If City Contacts answers 401, the key is wrong or revoked, or the word Bearer is missing from the header value.