Powered by CRM Help Centre

MCP Server: Connect AI Agents to Your Account

Developer Tools • MCP • AI Agents
MCP Server: Connect AI Agents to Your Account
The MCP Server gives compatible AI clients controlled access to account tools and data through the Model Context Protocol. Connected assistants can retrieve records, update supported data, send messages, review opportunities, access calendar information, and perform other approved actions. Access is governed by authentication, account/location context, and the permissions granted to the connection.
What You’ll Learn

Learn how MCP connects AI clients to account tools, how to configure a Private Integration Token, how scopes control available actions, how to add the production MCP endpoint to a compatible client, and how to troubleshoot authentication, permissions, and missing tools.

Important

The name used inside your client’s mcpServers configuration is only a local alias. It does not need to contain a product or company name. The examples in this guide use production-mcp while preserving the required production endpoint.

1

What is the MCP Server?

Model Context Protocol, or MCP, is a standardized way for AI applications to discover and use external tools. The MCP Server acts as a bridge between an MCP-compatible AI client and supported account services, allowing the client to retrieve information and perform authorized actions.

Depending on the permissions granted to the connection, tools can be available for contacts, conversations, messages, calendars, opportunities, payments, locations, custom fields, blogs, email templates, social posting, and other supported resources.

Production MCP Endpoint

https://services.leadconnectorhq.com/mcp/

2

Key Benefits of the MCP Server

MCP provides a reusable connection layer between AI clients and approved account capabilities. Instead of creating a separate custom integration for every AI workflow, developers can expose authorized tools through a standardized connection.

  • Centralized AI Access: Connect an AI client to multiple supported services through one MCP endpoint.
  • Scoped Permissions: Control which resources the connection can read or modify.
  • Natural Language Automation: Let compatible assistants choose approved tools in response to plain-language requests.
  • Multi-Service Connectivity: Work with contacts, conversations, calendars, opportunities, payments, and other supported resources.
  • MCP Compatibility: Use compatible developer tools, AI clients, or custom applications that support the required MCP transport and authentication.
  • No Dedicated SDK Required: Use an MCP connection instead of building a full client SDK implementation for every supported action.
3

Supported MCP Clients

Client compatibility depends on whether the application can connect to a remote HTTP-based MCP server and provide the authentication required by the selected connection method. Some clients also support dedicated OAuth-based MCP connection flows.

Client Type Examples
Developer Editors Cursor, Windsurf, and compatible development environments.
AI Development Tools OpenAI Playground and other compatible remote MCP clients.
Claude Clients Compatible Claude environments that support MCP connections.
Custom Applications Internally developed or third-party applications that support the required MCP transport and authentication.
MCP Server: Connect AI Agents to Your Account – Examples of MCP-compatible AI clients

Client-specific behavior: Some supported AI clients may use a dedicated MCP endpoint or OAuth authorization flow that exposes a broader tool set than the universal endpoint shown in this guide. Follow client-specific setup instructions when a dedicated connection method is available.

4

Prerequisites

Preparing the correct account access, permissions, and MCP client before configuration helps prevent authentication failures and ensures the AI receives only the tools required for its intended workflow.

  • Access to the account/location you want the AI client to use.
  • Permission to create or manage a Private Integration if using token-based authentication.
  • A Private Integration Token for the generic header-based setup.
  • Only the scopes required by the AI workflow.
  • The correct account/location ID.
  • An MCP-compatible client capable of connecting to a remote MCP server.
5

How To Connect to the MCP Server

The universal MCP setup uses the production endpoint together with authentication and account/location context. Once the client connects successfully, it can discover tools allowed by the permissions granted to the connection.

Step 1
Create a Private Integration Token
  1. Open the account/location you want to connect.
  2. Go to Settings.
  3. Select Private Integrations.
  4. Click Create New Integration.
  5. Enter a recognizable name and description for the MCP connection.
  6. Choose only the scopes required by the AI workflow.
  7. Click Create Integration.
  8. Copy the generated token and store it securely.

Protect the token: Treat a Private Integration Token like a password. Do not place it in screenshots, shared prompts, public repositories, browser-side code, or other locations where unauthorized users could retrieve it.

Step 2
Add the MCP Server to Your Client

Add the production MCP endpoint and authentication headers to your MCP client. The server name shown below is a neutral local alias and can be changed to another descriptive name.

{
  "mcpServers": {
    "production-mcp": {
      "url": "https://services.leadconnectorhq.com/mcp/",
      "headers": {
        "Authorization": "Bearer <your-token>",
        "locationId": "<your-location-id>"
      }
    }
  }
}
Replace:
  • <your-token> with your Private Integration Token.
  • <your-location-id> with the ID of the account/location you want the client to access.

Why the server name changed: production-mcp is only the name your client uses to identify this connection. Changing the alias does not change the server or the available tools.

Step 3
Connect and Discover Tools

Save or test the MCP connection in your client. After authentication succeeds, the client can discover the tools exposed to the connection based on its scopes and permissions.

Step 4
Enable Only the Required Tools

If your AI client lets you enable or disable individual MCP tools, expose only the tools needed for the intended workflow. Limiting unnecessary tools reduces risk and makes tool selection easier for the AI agent.

MCP Server: Connect AI Agents to Your Account – Selecting tools after connecting an MCP server
6

Authentication and Permissions

Authentication determines who is connecting, while scopes determine what that connection is allowed to do. The exact authentication experience can vary by MCP client and endpoint, so use the connection method supported by your client.

Method How It Works Typical Use
Private Integration Token A scoped token is passed in the Authorization header together with the location context. Generic HTTP MCP clients, custom applications, and header-based integrations.
OAuth A supported client launches an authorization flow where the user approves the account/location and permissions. Supported client-specific MCP flows and compatible OAuth-enabled connections.

Use the correct guide for your client: The configuration example in this article uses a Private Integration Token because it is suitable for the universal header-based MCP connection. If your client provides a dedicated OAuth MCP flow, use that client’s supported authorization process instead of manually inserting credentials.

8

Available MCP Tools

The universal MCP endpoint exposes tools across several product areas. The exact list visible to your AI client depends on the current MCP tool catalog, the connection type, the account/location, and the scopes granted to the connection.

Tool availability can change: Treat the tools discovered by your connected MCP client as the current source of truth. New tools may be added and existing capabilities may evolve over time.

Calendar Tools

Calendar tools retrieve scheduling and appointment information for workflows that need event or appointment context.

  • calendars_get-calendar-events
  • calendars_get-appointment-notes

Contact Tools

Contact tools can retrieve records, create or update contacts, manage tags, and retrieve contact-related tasks.

  • contacts_get-all-tasks
  • contacts_add-tags
  • contacts_remove-tags
  • contacts_get-contact
  • contacts_update-contact
  • contacts_upsert-contact
  • contacts_create-contact
  • contacts_get-contacts
MCP Server: Connect AI Agents to Your Account – Contact tools available through an MCP connection

Conversation Tools

Conversation tools let an authorized AI client search conversation records, retrieve messages, and send supported messages.

  • conversations_search-conversation
  • conversations_get-messages
  • conversations_send-a-new-message
MCP Server: Connect AI Agents to Your Account – Conversation tools available through an MCP connection

Location Tools

Location tools provide account/location details and custom field definitions that may be needed by other automated actions.

  • locations_get-location
  • locations_get-custom-fields

Opportunity Tools

Opportunity tools allow approved AI workflows to search pipeline data, retrieve an opportunity, or update opportunity information.

  • opportunities_search-opportunity
  • opportunities_get-pipelines
  • opportunities_get-opportunity
  • opportunities_update-opportunity
MCP Server: Connect AI Agents to Your Account – Opportunity tools available through an MCP connection

Payment Tools

Payment tools can retrieve supported order and transaction information when the connection has the required read permissions.

  • payments_get-order-by-id
  • payments_list-transactions

Blog Tools

Blog tools allow compatible AI workflows to retrieve blog configuration and content information or perform supported publishing-related actions.

  • blogs_check-url-slug-exists
  • blogs_update-blog-post
  • blogs_create-blog-post
  • blogs_get-all-blog-authors-by-location
  • blogs_get-all-categories-by-location
  • blogs_get-blog-post
  • blogs_get-blogs

Email Template Tools

Email template tools allow authorized workflows to retrieve or create supported email templates.

  • emails_create-template
  • emails_fetch-template

Social Media Tools

Social media tools provide supported access to connected accounts, statistics, and social post management when the necessary permissions are granted.

  • socialmediaposting_get-account
  • socialmediaposting_get-social-media-statistics
  • socialmediaposting_create-post
  • socialmediaposting_get-post
  • socialmediaposting_get-posts
  • socialmediaposting_edit-post
9

Example MCP Workflows

Once the MCP connection is authenticated and the appropriate tools are available, an AI client can translate a user’s request into one or more authorized tool calls. The exact action depends on the tool set and permissions available to the connection.

  • Search for a contact by available identifying information.
  • Create or update a contact.
  • Add or remove contact tags.
  • Review conversation history.
  • Send a supported message.
  • Retrieve calendar events or appointment notes.
  • Search opportunities or pipelines.
  • Update an opportunity.
  • Review supported payment order or transaction data.
  • Create or update supported blog content.
  • Retrieve or create email templates.
  • Retrieve social statistics or manage supported social posts.
10

Using MCP in AI Clients

After the server is connected, the AI client can discover available tools and determine which approved tool is appropriate for a user’s request. Clear prompts make it easier for the client to choose the correct action and avoid unintended write operations.

Example Prompt
“Check whether I have a contact named Bruce Wayne.”

The client can use an available contact-search tool to find matching records and summarize the result.

Example Prompt
“Search for available opportunities in my account.”

The client can call an opportunity-search tool if that tool is available and the connection has the required scope.

MCP Server: Connect AI Agents to Your Account – Using an MCP-connected AI client to access account tools
11

Security and Best Practices

An MCP connection can expose both read and write capabilities to an AI client. Restricting access, protecting credentials, and testing high-impact actions before production use reduces the risk of unauthorized or unintended changes.

  • Use Least-Privilege Access: Grant only the scopes required by the AI workflow.
  • Separate Read and Write Needs: Do not enable edit permissions when the assistant only needs to retrieve information.
  • Protect Tokens: Store Private Integration Tokens in secure configuration or secret storage.
  • Never Place Secrets in Prompts: Do not paste tokens into AI conversations, shared instructions, screenshots, or public code.
  • Test With Representative Data: Confirm the client chooses the intended tools before enabling production use.
  • Review Tool Access: Disable tools that are unrelated to the AI agent’s purpose.
  • Monitor Write Actions: Pay particular attention to tools that create, update, send, publish, or otherwise modify data.
  • Rotate or Revoke Exposed Credentials: Replace a token promptly if you believe it has been compromised.
  • Use Clear Agent Instructions: Define when the assistant may perform an action and when it should ask the user for confirmation.
12

Frequently Asked Questions

Q: What does MCP stand for?
MCP stands for Model Context Protocol. It is a standardized protocol that allows compatible AI applications to discover and interact with external tools and services.
Q: Why does the configuration use “production-mcp”?
The value production-mcp is simply a local name for the connection inside your MCP client. You can replace it with another descriptive alias without changing the production server endpoint.
Q: Why can I connect successfully but some tools are missing?
Review the scopes granted to the connection. Tool availability is filtered by authentication method, permissions, account/location access, and the tools currently exposed by the MCP endpoint.
Q: Can an AI client update account data through MCP?
Yes, when an appropriate write tool is available and the connection has the required edit permission. Read-only scopes do not authorize write operations.
Q: Is OAuth supported?
Yes. OAuth is supported for compatible MCP connection flows. The generic setup documented in this article uses a Private Integration Token and authentication headers. Some supported clients may provide a dedicated OAuth connection experience instead.
Q: Do I need an SDK to use the MCP Server?
No dedicated SDK is required for the standard MCP connection. Your client must support the applicable MCP transport and authentication method.
Q: Can I connect a custom AI application?
Yes. A custom application can connect when it supports the required MCP transport and can provide the authentication details required by the selected endpoint.
Q: Should I give my AI client every available scope?
No. Grant only the permissions required for the workflow. Limiting scopes reduces unnecessary access and makes it easier to understand what the AI client is authorized to do.
13

Need Help?

If the MCP client cannot connect, identify whether the failure is caused by the server URL, authentication, location context, scopes, or the client’s MCP configuration. Checking each layer separately usually makes the issue easier to isolate.

  • Connection Fails Immediately: Confirm the MCP endpoint is entered exactly and that the client’s configuration is valid JSON or follows the format required by that client.
  • Unauthorized Error: Verify the Private Integration Token is active, copied correctly, and included in the Authorization header.
  • Wrong Account Data: Confirm the configured locationId matches the intended account/location.
  • Tools Are Missing: Review the connection’s scopes and reconnect or refresh tool discovery after changing permissions.
  • Read Works but Updates Fail: Confirm the connection has the necessary edit scope in addition to its read permission.
  • Client Does Not Accept Headers: Check whether that client requires an OAuth-based or client-specific MCP connection instead of the header-based configuration shown here.
  • Tool Execution Fails: Capture the tool name, input, error message, timestamp, authentication method, client name, and affected account/location before contacting support.