Back to Blog
MCP (Model Context Protocol) for Compliance: How AI Assistants Query Your GRC Data
Technical Guide·8 min read·

MCP (Model Context Protocol) for Compliance: How AI Assistants Query Your GRC Data

C

Claw GRC Team

Claw GRC Team

How Model Context Protocol enables AI assistants like Claude to directly query compliance data, create findings, and trigger security scans in GRC platforms. A technical guide with real examples.

MCP for Compliance: AI Assistants That Query Your GRC Data

Model Context Protocol (MCP) is changing how AI assistants interact with enterprise software. Instead of copy-pasting screenshots from your GRC dashboard into a chat window, your AI assistant can directly query your compliance data, create tickets, and trigger scans — all from within its context window.

Claw GRC is one of the first GRC platforms to ship native MCP support. This guide explains how it works and how to use it.

What Is MCP?

Model Context Protocol is an open standard by Anthropic that lets AI models communicate with external tools and services in a standardized way. Think of it like an API, but designed specifically for AI assistants:

  • The AI assistant connects to an MCP server
  • The MCP server exposes "tools" the AI can use
  • The AI can call tools, get results, and use them in conversation

Analogy: MCP is to AI assistants what USB is to computers — a standardized connector that lets any AI work with any MCP-compatible service.

Claw GRC's MCP Tools

Claw GRC exposes 8 GRC tools via MCP:

1. grc.list_frameworks

List all compliance frameworks active in your organization.

Use case: "Claude, what compliance frameworks are we certified under?"

2. grc.get_compliance_score

Get the organization's current compliance score.

Use case: "What's our SOC 2 compliance score right now?"

3. grc.list_findings

Query security findings with filters.

Use case: "List all critical findings from this month that haven't been remediated."

4. grc.create_finding

Report a new security finding.

Use case: After a code review, Claude identifies a SQL injection vulnerability and creates a finding automatically.

5. grc.create_ticket

Create a remediation ticket.

Use case: "Create a ticket for the SQL injection finding, assign it to the backend team, due next Friday."

6. grc.trigger_scan

Initiate a security scan.

Use case: "Trigger a DAST scan on the staging API before we deploy."

7. grc.call_agent

Invoke another registered agent.

Use case: An AI orchestrator delegates evidence collection to a specialized evidence agent.

8. grc.discover_agents

Find agents by capability and trust score.

Use case: "Find all active evidence collection agents with a trust score above 0.8."

Setting Up MCP with Claude Code

// In your Claude Code config (~/Library/Application Support/Claude/claude_desktop_config.json)
{
  "mcpServers": {
    "claw-grc": {
      "command": "npx",
      "args": ["@claw-grc/mcp-server"],
      "env": {
        "CLAW_GRC_API_KEY": "cgrc_your_api_key_here",
        "CLAW_GRC_API_URL": "https://api.clawgrc.com"
      }
    }
  }
}

After setting this up, Claude can directly use GRC data in any conversation.

Example Conversations

Security review workflow:

You: "Review the auth.py file for security issues and report any findings to our GRC platform."

Claude: [reads auth.py, identifies JWT validation issue]
I've found a JWT algorithm confusion vulnerability. I'll create a finding in Claw GRC...

[grc.create_finding called]

Created finding FIND-0042: JWT Algorithm Confusion Attack
- Severity: High
- CWE-347: Improper Verification of Cryptographic Signature
- Mapped to controls: CC6.1, CC6.7
- Remediation ticket created

Would you like me to assign the ticket to someone?

Compliance status check:

You: "What's our compliance posture before next month's audit?"

Claude: [grc.get_compliance_score called, grc.list_findings called]

Current compliance status:
- Overall score: 87% 
- SOC 2: 91% ✓
- ISO 27001: 84% ⚠️ (needs attention)
- EU AI Act: 72% ❌ (critical gaps)

12 open findings, 3 critical:
1. Evidence stale for CC6.2 (72 days old, threshold 90 days)
2. Missing human oversight documentation for AI agent #4
3. Vendor assessment overdue for OpenAI

I recommend focusing on EU AI Act gaps before the audit. Want me to generate a prioritized remediation plan?

Agent governance:

You: "Check if we have any low-trust agents running in production."

Claude: [grc.discover_agents called with min_trust_score: 0]

Found 2 agents with trust scores below 0.75:
1. "legacy-scanner-v1" — Trust score: 0.61 (PROVISIONAL)
   Issues: Security assessment 8 months old, 2 open medium findings
   
2. "data-processor-old" — Trust score: 0.43 (RESTRICTED)
   Issues: Behavioral anomalies detected (3 out-of-scope data accesses), evidence stale

Recommend: Schedule security assessment for legacy-scanner-v1. 
Investigate and potentially decommission data-processor-old.

The Architecture Behind MCP + Claw GRC

Claude (MCP Client)
    ↓ MCP Protocol
Claw GRC MCP Server (Node.js/Python package)
    ↓ REST API
Claw GRC API Gateway (Go)
    ↓ Internal routing
    ├── Compliance Engine (findings, controls, evidence)
    ├── Security Engine (scans, assessments)
    └── Agent Protocol (agents, interactions, trust)

Every MCP tool call:

  1. Is authenticated via your API key
  2. Is scoped to your organization
  3. Is logged in the immutable audit trail (with "actor_type: mcp_client")
  4. Returns structured data that Claude can reason over

Building Your Own MCP Tools

The Claw GRC MCP server is open source. You can extend it with custom tools:

// packages/mcp-server/src/custom-tools.ts
const customTool: MCPTool = {
  name: "grc.check_vendor_compliance",
  description: "Check if a specific vendor has current security certifications",
  input_schema: {
    type: "object",
    properties: {
      vendor_name: { type: "string" },
      required_certifications: { 
        type: "array",
        items: { type: "string" }
      }
    },
    required: ["vendor_name"]
  },
  handler: async (params, auth) => {
    // Your custom implementation
    const vendor = await getVendor(params.vendor_name, auth.org_id);
    return { vendor, certifications: vendor.certifications };
  }
};

MCP for OpenClaw Agents

OpenClaw agents can establish MCP sessions with Claw GRC to:

  • Check their own compliance status (grc.get_compliance_score)
  • Submit evidence autonomously (grc.submit_evidence — coming soon)
  • Report findings they discover (grc.create_finding)
  • Discover and invoke other trusted agents (grc.discover_agents, grc.call_agent)

MCP turns every OpenClaw agent into a compliance-native AI citizen.

Get Started with Claw GRC MCP

# Install the MCP server globally
npm install -g @claw-grc/mcp-server

# Test your connection
CLAW_GRC_API_KEY=cgrc_xxx claw-grc-mcp test

# Add to Claude Code config (see above)
# Then ask Claude about your compliance posture

Get your API key →

CG

Get started with Claw GRC

AI-native compliance automation. 1,026+ controls. MCP-native. Free workspace, no credit card.

Start Free →