The People.ai Model Context Protocol (MCP) server is the core data source for every skill in this library. It gives AI assistants direct access to account activity, engagement data, opportunity status, and contact intelligence.
The People.ai MCP server exposes these tools to connected AI assistants:
| Tool | Description | Used By |
|---|---|---|
find_account |
Search for accounts by name or domain | All skills |
get_account_status |
Account health, engagement score, risk signals | Account Plan, Sentiment, Renewal Risk |
get_recent_account_activity |
Meetings, emails, calls in a time window | Account Plan, Meeting Prep, QBR Generator |
get_opportunity_status |
Deal stage, amount, close date, activity | Opportunity Agent, MEDDPICC, Win Probability |
get_recent_opportunity_activity |
Recent deal-level interactions and changes | Opportunity Agent, Deal Debrief |
get_engaged_people |
Contacts with recent engagement on an account | Relationship Map, Multi-Threading Coach |
get_scorecard |
Account plan sections with completion scores | Account Plan, Engagement Scorecard |
ask_sales_ai_about_account |
Natural language queries about any account (10-30s) | Executive Briefing, Pipeline Review |
ask_sales_ai_about_opportunity |
Natural language queries about any deal (10-30s) | Opportunity Agent, Win Probability, MEDDPICC |
top_records |
Top accounts/opps by activity, risk, or value | Pipeline Review, Whitespace Mapper |
account_company_news |
Recent news about an account's company | Company News, Meeting Prep, Executive Briefing |
Claude.ai Projects support MCP integrations natively:
Add People.ai MCP to your Claude Code settings:
# In your Claude Code MCP settings (settings.json or .mcp.json):
{
"mcpServers": {
"peopleai": {
"url": "https://mcp.people.ai/mcp",
"transport": "sse",
"headers": {
"PAI-Client-Id": "your-client-id",
"PAI-Client-Secret": "your-client-secret",
"Content-Type": "application/json"
}
}
}
}
Copy skill instructions into your CLAUDE.md file or invoke them as slash commands.
ChatGPT Custom GPTs use Actions to connect to external APIs:
PAI-Client-Id and PAI-Client-SecretPAI-Client-Id (not PAI-Client-ID or pai-client-id).
Use Copilot Studio to create agents with People.ai data:
https://mcp.people.ai/mcpPAI-Client-Id and PAI-Client-SecretFor programmatic access, use these SDK examples:
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"peopleai": {
"url": "https://mcp.people.ai/mcp",
"transport": "sse",
"headers": {
"PAI-Client-Id": os.environ["PEOPLEAI_CLIENT_ID"],
"PAI-Client-Secret": os.environ["PEOPLEAI_CLIENT_SECRET"],
"Content-Type": "application/json",
}
}
})
tools = await client.get_tools()
pip install claude-agent-sdk anthropic
from claude_agent_sdk import Agent
import anthropic
agent = Agent(
client=anthropic.Anthropic(),
model="claude-sonnet-4-20250514",
system="You are a sales intelligence assistant...",
mcp_servers=[{
"name": "peopleai",
"url": "https://mcp.people.ai/mcp",
"headers": {
"PAI-Client-Id": os.environ["PEOPLEAI_CLIENT_ID"],
"PAI-Client-Secret": os.environ["PEOPLEAI_CLIENT_SECRET"],
"Content-Type": "application/json",
}
}],
)
pip install openai-agents
from agents import Agent
from agents.mcp import MCPServerSse
peopleai_mcp = MCPServerSse(
name="peopleai",
url="https://mcp.people.ai/mcp",
headers={
"PAI-Client-Id": os.environ["PEOPLEAI_CLIENT_ID"],
"PAI-Client-Secret": os.environ["PEOPLEAI_CLIENT_SECRET"],
"Content-Type": "application/json",
},
)
agent = Agent(
name="Sales Intelligence",
instructions="You are a sales intelligence assistant...",
mcp_servers=[peopleai_mcp],
)
Set these for Python-based integrations:
export PEOPLEAI_MCP_URL="https://mcp.people.ai/mcp" export PEOPLEAI_CLIENT_ID="your-client-id" export PEOPLEAI_CLIENT_SECRET="your-client-secret" # Also needed for the LLM: export ANTHROPIC_API_KEY="sk-ant-..." # for Claude-based integrations export OPENAI_API_KEY="sk-..." # for OpenAI-based integrations
Try these example queries to verify the connection works:
"Find the account for Acme Corp""What are the risks for the Acme Enterprise deal?""Show me recent activity for Globex Industries"If the AI responds with real account data, you're connected. If it says it can't access People.ai tools, double-check your credentials and integration setup.
| Issue | Cause | Fix |
|---|---|---|
| People.ai integration not available | MCP access not enabled for your org | Contact your People.ai CSM to enable MCP API access |
| Authentication failed | Wrong credentials or header names | Header names are case-sensitive: PAI-Client-Id, PAI-Client-Secret. Verify MCP-specific credentials (not REST API keys). |
| AI not using People.ai tools | Instructions not explicit enough | Use skill instructions from this library — they include explicit tool-calling workflows. Be specific: "Use find_account to look up Acme Corp." |
| Slow responses (10-30s) | AI-powered tools (ask_sales_ai_*) require deep analysis |
This is normal. Use simpler tools like get_account_status for faster responses. |
| Tool returns empty data | Account name mismatch or no activity | Use exact account names from Salesforce. Verify the account has recent engagement data. |
| ChatGPT Actions not working | API schema misconfigured | Ensure each Action maps to the correct People.ai MCP endpoint with proper authentication headers. |
Step-by-step instructions for connecting People.ai MCP to your preferred AI platform.
Connect People.ai's MCP server to Salesforce Agentforce to bring real-time sales intelligence directly into your Salesforce environment. Agentforce agents can use People.ai data to analyze accounts, score opportunities, and recommend next best actions — all within Salesforce.
| Label | People_ai_MCP |
| URL | https://mcp.people.ai/mcp |
| Identity Type | Named Principal |
| Authentication Protocol | Custom Header |
| Header Name | Value |
|---|---|
PAI-Client-Id |
[Your Client ID] |
PAI-Client-Secret |
[Your Client Secret] |
Content-Type |
application/json |
PAI-Client-Id (not PAI-Client-ID or pai-client-id).
Each People.ai MCP tool becomes an Agentforce Action. Create these as External Service Actions or Apex Invocable Actions:
| MCP Tool | Agentforce Action Name | Input |
|---|---|---|
find_account |
Find People.ai Account | Account Name or Domain |
get_account_status |
Get Account Health Status | Account ID |
get_opportunity_status |
Get Opportunity Status | Opportunity ID |
get_engaged_people |
Get Engaged Contacts | Account ID |
ask_sales_ai_about_account |
Ask Sales AI About Account | Account ID, Question |
ask_sales_ai_about_opportunity |
Ask Sales AI About Deal | Opportunity ID, Question |
get_scorecard |
Get Performance Scorecard | Account ID |
top_records |
Get Top Records | Record Type, Sort Criteria |
@InvocableMethod(label='Get Account Status from People.ai'
description='Retrieves account health and engagement data')
public static List<AccountStatusResult> getAccountStatus(
List<AccountStatusRequest> requests
) {
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:People_ai_MCP/get_account_status');
req.setMethod('POST');
req.setBody(JSON.serialize(new Map<String, Object>{
'account_id' => requests[0].accountId
}));
HttpResponse res = new Http().send(req);
// Parse and return results
}
Sales Intelligence Agent)| Topic | Description | Actions to Assign |
|---|---|---|
| Account Intelligence | Analyze account health, engagement, and relationships | Find Account, Get Account Health, Get Engaged Contacts, Ask Sales AI |
| Deal Management | Opportunity analysis, win probability, and deal coaching | Get Opportunity Status, Ask Sales AI About Deal, Get Scorecard |
| Pipeline Review | Pipeline health, forecasting, and territory analysis | Get Top Records, Get Opportunity Status, Ask Sales AI |
Agentforce agents can run automatically based on Salesforce events:
Configure triggers in Setup → Process Builder or Flow Builder, invoking your Agentforce agent as the action.
Try these queries in the Agentforce test console:
"Analyze the Acme Corp account — what's the engagement health?""What's the win probability for the Globex Enterprise deal?""Who are the key stakeholders at Initech and when did we last meet?"If the agent responds with People.ai data, you're connected. Check the agent's execution log for tool call details.
| Issue | Cause | Fix |
|---|---|---|
| Callout exception | Named Credential misconfigured | Verify URL is exactly https://mcp.people.ai/mcp. Check Remote Site Settings include mcp.people.ai. |
| 401 Unauthorized | Wrong credentials or header names | Headers are case-sensitive: PAI-Client-Id, PAI-Client-Secret. Verify MCP credentials, not REST API keys. |
| Agent not selecting People.ai actions | Actions not assigned to Topic | Ensure each People.ai Action is explicitly assigned to the relevant Topic in Agent Builder. |
| Timeout on ask_sales_ai calls | AI analysis takes 10-30 seconds | Increase callout timeout in Named Credential. Consider async pattern with Platform Events for long-running analysis. |
| Permission errors | User profile lacks Agentforce access | Assign the Agentforce User permission set to target users. Verify agent sharing settings. |