Drata MCP server for AI agents

Live

BEARER TOKEN

COMPLIANCE

Monitoring

Drata gives your agent compliance data from your Drata account: read controls, evidence, frameworks, and monitoring tests, review personnel, policies, risks, and vendors, and create tasks or vendors.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Drata
agent · Acme Q3
Run
Which resources are failing the MFA monitoring test?
S
drata_monitoring_test_failures_list
171ms
Compliance agent
3 resources fail the MFA test: 2 user accounts and 1 service login. The test last ran this morning.
Sources: Drata monitoring test, 3 resources
drata
3 resources
18:29
Message Claude...

Tools your compliance agent reaches for on Drata, scoped per user.

CALL ANY TOOL
30 tools for compliance in Drata: read controls, evidence, frameworks, monitoring tests, personnel, policies, risks, and vendors, re-run tests, and create tasks and vendors.
drata_company_get
Get company
Get the Drata account's company profile. Returns the company name, legal name, domain, description, training and background-check settings, and entitlements. Use this to confirm which Drata account the connection uses.
Parameters
Name
Type
Required
Description
—
No parameters required
drata_control_get
Get control
drata_control_owners_list
List control owners
drata_control_requirements_list
List control requirements
drata_controls_list
List controls
drata_events_list
List events
drata_evidence_artifacts_list
List evidence artifacts
drata_evidence_get
Get evidence
drata_evidence_list
List evidence
drata_framework_requirements_list
List framework requirements
drata_frameworks_list
List frameworks
drata_monitoring_test_failures_list
List monitoring test failures
drata_monitoring_test_get
Get monitoring test
drata_monitoring_test_retest
Monitoring test retest
drata_monitoring_tests_list
List monitoring tests
drata_personnel_devices_list
List personnel devices
drata_personnel_get
Get personnel
drata_personnel_list
List personnel
drata_personnel_update
Update personnel
drata_policies_list
List policies
drata_policy_get
Get policy
drata_risks_search
Search risks
drata_task_create
Create task
drata_tasks_list
List tasks
drata_user_get
Get user
drata_users_list
List users
drata_vendor_create
Create vendor
drata_vendor_get
Get vendor
drata_vendors_list
List vendors
drata_workspaces_list
List workspaces
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Drata tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["drata"], toolNames: [
    "drata_monitoring_test_failures_list",
    "drata_controls_list",
    "drata_task_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the monitoring tests that are failing, list the controls that are not ready, and create a task to fix them" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["drata"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find the monitoring tests that are failing, list the controls that are not ready, and create a task to fix them" }],
  tools,
});

// Execute the tool call with the user's vaulted Drata access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["drata"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find the monitoring tests that are failing, list the controls that are not ready, and create a task to fix them" }],
  tools,
});

// Tool call runs with the user's vaulted Drata access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["drata"] }, pageSize: 100,
});

const agent = new Agent({
  name: "compliance_agent",
  model: "gemini-2.5-pro",
  instruction: "Drata tools scoped to this user",
  tools,
});

await agent.run("Find the monitoring tests that are failing, list the controls that are not ready, and create a task to fix them");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Drata tool. Click to copy, paste into your agent, done.
Controls and evidence
Copy the prompt
Copied
List the controls in my SOC 2 workspace that are not ready.
Copy the prompt
Copied
Show the evidence items attached to this control.
Copy the prompt
Copied
Which framework requirements map to this control?
Monitoring and risk
Copy the prompt
Copied
List the failing monitoring tests in my workspace.
Copy the prompt
Copied
Re-run the monitoring test for MFA now.
Copy the prompt
Copied
Search my risk registers for high-scoring open risks.
People and vendors
Copy the prompt
Copied
Show the compliance status of this employee's personnel record.
Copy the prompt
Copied
Create a task to review the access policy before the audit.
Copy the prompt
Copied
Add a new vendor called Acme Analytics to Drata.
SEE HOW AUTH WORKS
Each user connects their own Drata access token once, and Scalekit sends it with every call. Access tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Drata
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Drata
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Drata
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Drata
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other monitoring connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other monitoring connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Drata access token looks fine in a demo. In production every monitoring test re-run and task looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Drata today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Drata as the user or through a shared token?
As the user. Each user connects their own Drata access token once, and Scalekit sends it with every call. Audit logs attribute every task, vendor, and test re-run to that user, not a shared service account.
Where is the Drata access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Drata?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without drata_personnel_update, drata_task_create, or drata_vendor_create. None of the 30 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Drata access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent re-run a failing monitoring test in Drata?
Yes. drata_monitoring_test_retest runs a test now instead of waiting for its schedule, and drata_monitoring_test_failures_list shows the resources that fail it.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""drata"": {
""url"": ""https://mcp.scalekit.com/drata"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.drata]
url = ""https://mcp.scalekit.com/drata""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""drata"": {
""url"": ""https://mcp.scalekit.com/drata"",
""type"": ""http""
}
}
}