Connect
Optimize
Secure
Announcing StackOne Defender: leading open-source prompt injection guard for your agent • Read More →
Production-ready Affinity MCP server with 34 extensible actions — plus built-in authentication, security, and optimized execution.
Coverage
Create, read, update, and delete across Affinity — and extend your agent's capabilities with custom actions.
Authentication
Per-user OAuth in one call. Your Affinity MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Every Affinity tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Affinity call.
Tools Discovery →A Affinity MCP server lets AI agents read and write Affinity data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Affinity MCP server ships with 34 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
Every action from Affinity's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Retrieve information about the currently authenticated user
Retrieve a paginated list of all opportunities (deals) in Affinity
Create a new opportunity (deal) in Affinity
Retrieve a specific opportunity by its ID
Update an existing opportunity in Affinity
Delete an opportunity from Affinity
Create a new organization (company) in Affinity
Retrieve a paginated list of all organizations (companies) in Affinity
Retrieve a specific organization by its ID
Update an existing organization in Affinity
Delete an organization from Affinity
Create a new person (contact) in Affinity
Retrieve a paginated list of all persons (contacts) in Affinity
Retrieve a specific person by their ID
Update an existing person in Affinity
Delete a person from Affinity
Retrieve all lists (pipelines) in Affinity
Retrieve a specific list by its ID
Retrieve all entries in a specific list
Add an entity to a list in Affinity
Retrieve a specific list entry by its ID
Remove an entry from a list in Affinity
Create a new note associated with a person, organization, or opportunity
Retrieve notes associated with a specific person, organization, or opportunity
Retrieve a specific note by its ID
Update an existing note in Affinity
Delete a note from Affinity
Retrieve interactions (emails, meetings, etc.) associated with a person, organization, or opportunity
Retrieve a specific interaction by its ID
Retrieve field metadata definitions available in Affinity
Set a field value on an entity in Affinity
Retrieve field values for a specific entity in Affinity
Update an existing field value in Affinity
Delete a field value from an entity in Affinity
One endpoint. Any framework. Your agent is talking to Affinity in under 10 lines of code.
MCP Clients
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
origin_owner_id.All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.