Guide

How to secure AI agents and MCP servers at client companies

MSPs secure AI agents and MCP servers by finding the agents and connectors (MCP servers) on client computers, rating the risk of what each one can do, allowing only approved ones, and stopping risky coding agent actions before they run.

Traceforce for MSPs does this across every client, with each client in its own organization and an All Organizations view that shows them all at once.

What makes AI agents different from chatbots?

AI agents take actions. Traceforce's docs describe them as AI software installed as desktop apps or running in the browser, such as ChatGPT Desktop, Claude Desktop, Cursor and Claude Code, that can take actions on behalf of employees.

That changes the risk. The OWASP Top 10 for Agentic Applications (opens in a new tab), published in December 2025, lists agent goal hijack, tool misuse, identity and privilege abuse, and agentic supply chain vulnerabilities as its first 4 entries.

Coding agents run shell commands and use connected tools right on the computer, which is where Traceforce watches for risky actions.

What is an MCP server, and why does it need watching?

An MCP server is a program that gives AI tools access to outside tools and data using the Model Context Protocol, which its maintainers describe (opens in a new tab) as an open-source standard that connects AI apps with outside systems.

In the MCP specification (opens in a new tab), a host application runs clients that connect to servers, and servers offer tools, resources and prompts. The specification is direct about the risk: it treats tools as arbitrary code execution and says hosts must get the user's consent before invoking a tool.

MCP's security policy (opens in a new tab) adds that a local server running over stdio can run with the same privileges as the app that starts it, so a malicious server can run code simply by being launched.

Traceforce calls MCP servers and other AI agent integrations connectors. It finds the connectors built into popular AI tools, such as a calendar connection in Claude Desktop, and the custom MCP servers people add themselves in tools like Claude Desktop and Cursor, and it flags problems such as exposed secrets and unpinned versions.

How do you rate a connector's risk?

You rate a connector by where it comes from and what it can do. Traceforce weighs a connector's risk by its origin and reputation, known vulnerabilities, what its tools can do on the computer or in remote services, how it authenticates, and whether its permissions allow destructive actions or go beyond least privilege.

  • A registry to check against. Traceforce's Atlas registry rates publicly available AI agents and connectors across multiple security dimensions, so a connector's rating can be checked before it's used.
  • Breadth. As of November 2026, Traceforce says it tracks hundreds of publicly known AI agents and thousands of publicly known connectors.
  • Scores. Risk runs from 0 to 100: below 40 is low, 40 to 59 is medium, 60 to 79 is high, and 80 and above is critical.
  • A recognized framework. Traceforce's risk frameworks map agent and connector attributes, where applicable, to NIST SP 800-53 Rev. 5 control families.
  • Research. Traceforce Research publishes security advisories, including CVEs, on vulnerabilities it finds in AI and MCP software.

How do you rate an AI agent's risk?

You rate an AI agent by its settings, its plan and what it's connected to. Traceforce weighs an AI tool's risk by its model choices, its connectors and the identity they act with, whether prompts can be used for training and how long they're kept, support for MFA or single sign-on, and activity logging.

Traceforce also tracks which plan each AI tool runs on, because each plan comes with different security controls. When an agent or connector goes over a policy's target score, Traceforce raises an issue and lists the devices affected. Traceforce can also monitor AI activity inside dev containers, when the host computer runs Traceforce and the project adds Traceforce's dev container feature.

How do you control which connectors and models agents use?

You control them with allow and deny lists. Traceforce's Connector Access Policy decides which connectors coding agents can use, by risk level, by the kind of system they reach, or by approving specific connectors.

  • Connectors can be allowed or denied by risk score, by the resources they access, or with rules for individual connectors, including in Codex.
  • AI models can be allowed or denied by host, model family or specific model.
  • Specific AI apps can be blocked entirely, by name or by where they come from.
  • Traceforce supports customizable private registries and security policies that match an organization's own security and compliance guidelines, and admins can add custom MCP servers found in their inventory to the organization's private registry.

How do you stop risky agent actions?

You act on them on the device, before they run. Traceforce detects risky actions that coding agents try through shell commands and connected tools, and a policy can block the action, require approval or report it.

Traceforce sorts risky actions into 4 categories:

  1. Destroying company data or infrastructure, such as deleting database tables or destroying cloud resources
  2. Changing company data or infrastructure, such as force-pushing over shared git history
  3. Destructive or suspicious device changes, such as turning off OS security features, running downloaded code or installing lookalike packages
  4. Local setting changes

Each control is marked enforceable or monitor and alert, depending on what the AI tool supports, and coding agent policies are enforced through Traceforce-managed hooks. For general purpose AI tools like ChatGPT and Claude, the default policy monitors risky action handling and reports it as an issue.

How do you handle prompt injection?

You detect it where agents work and require approval for actions with real consequences. Prompt injection happens when instructions in a prompt, or in content the AI reads, change what the model does in ways its users didn't intend.

OWASP ranks prompt injection first, as LLM01 in its 2025 list (opens in a new tab) and again in its 2026 Top 10 for LLM applications (opens in a new tab). It can be direct, typed by a user, or indirect, hidden in a web page, file or tool result, and OWASP notes the instructions don't have to be visible to people. OWASP's prompt injection guidance (opens in a new tab) includes keeping a human in the loop for high-consequence actions.

Traceforce detects and enforces against prompt injection in Claude Cowork and Claude Code, and detects prompt injection in coding agents. It also flags links in AI-generated responses that could lead to phishing sites or malware. Holding risky coding agent actions for approval adds a human check.

How do you test agent controls before rolling them out?

You test agent controls on a pilot computer, with made-up values. Each control gets 2 tests, with made-up values in a real format and never real data: one that should be stopped and one that should go through.

For example, a coding agent asked to run git reset --hard in a throwaway repository should be stopped or held for approval, while git status should go through. Prompt injection tests are agreed with PORT1 first.

Controls then go to a small pilot group, warn before they block on the top few risks, and move to blocking 1 control at a time where the client wants it.

Where do you start?

You start with an inventory. A free AI Risk Assessment shows which AI tools, connectors and accounts are on a client's computers before anything changes, because Traceforce only watches while it runs.

From there, Traceforce policies and controls covers each control, what Traceforce finds covers connectors in more detail, and the Traceforce Blueprint walks through putting controls in place and proving they work.

Sign up for Traceforce for MSPs and see which agents and connectors your first client is running, with a free AI Risk Assessment.

Sources

FAQ

Does Traceforce find MCP servers?

Yes. Traceforce finds connectors built into popular AI tools, such as a calendar connection in Claude Desktop, and custom MCP servers people add themselves in tools like Claude Desktop and Cursor. It flags problems such as exposed secrets and unpinned versions, and weighs each connector's risk by its origin, known vulnerabilities, what its tools can do and how it authenticates.

Can Traceforce stop an AI agent from deleting data?

Yes, for coding agents. Traceforce detects risky actions coding agents try through shell commands and connected tools, on the device, before they run, and a policy can block the action, require approval or report it. Risky actions include deleting database tables, destroying cloud resources and force-pushing over shared git history.

Does Traceforce detect prompt injection?

Yes. Traceforce detects prompt injection in coding agents, and detects and enforces against it in Claude Cowork and Claude Code. Prompt injection is also among the issues Traceforce ranks by risk, each with the fix. Traceforce also flags links in AI-generated responses that could lead to phishing sites or malware.

Can Traceforce tell personal AI accounts from company accounts?

Yes. When you add a client, you enter its email domains, so Traceforce can tell company accounts from personal ones. It also tracks which plan each AI tool runs on. Once the client is ready, the identity federation control permits only company email domains and blocks other sign-ins, such as personal accounts, on supported AI tools.

All questions