Docs/MCP Tools
@torknetwork/mcp-server v1.2.0

MCP Tools for AI Governance

Add AI safety guardrails directly to Claude Desktop, Cursor, and other MCP-compatible clients. 25 governance tools including PII detection, tool governance, HITL, and cloud API integration.

What is MCP?

Model Context Protocol enables AI assistants to use external tools

The Model Context Protocol (MCP) is an open standard that allows AI assistants like Claude to interact with external tools and services. The Tork MCP Server provides governance tools for PII scanning, tool call validation, human-in-the-loop approvals, and more.

PII Detection

Scan and redact sensitive data

Tool Governance

Control which tools agents can call

Human-in-the-Loop

Approval workflows with fatigue detection

Cloud Integration

Sync with Tork Cloud API

Installation

Install the Tork MCP server globally or use npx

Option 1: Install globally

bash
npm install -g @torknetwork/mcp-server

Option 2: Use npx (recommended)

Using npx in your configuration ensures you always have the latest version.

View on npm

Configuration

Set up Tork MCP in your favorite AI client

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

jsonclaude_desktop_config.json
{
  "mcpServers": {
    "tork-governance": {
      "command": "npx",
      "args": ["-y", "@torknetwork/mcp-server"],
      "env": {
        "TORK_API_KEY": "tork_live_xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Cursor

Add to your Cursor settings (.cursor/mcp.json in your project):

json.cursor/mcp.json
{
  "mcp": {
    "servers": {
      "tork-governance": {
        "command": "npx",
        "args": ["-y", "@torknetwork/mcp-server"],
        "env": {
          "TORK_API_KEY": "tork_live_xxxxxxxxxxxxxxxxxxxx"
        }
      }
    }
  }
}

Set TORK_API_KEY to enable Cloud API tools. Without it, only local tools (PII scanning, tool governance, HITL) are available.

Using Tork Tools

Tools are called automatically by the AI based on your requests

Once configured, simply ask Claude (or your AI assistant) to perform governance tasks. The AI will automatically select and call the appropriate Tork tools.

text
// Example: Using Tork MCP tools in Claude Desktop

User: "Scan this text for PII: My SSN is 123-45-6789 and email is john@example.com"

Claude will automatically call:
→ tork_scan_pii({ text: "My SSN is 123-45-6789...", redact: true })

Response: {
  "pii_found": true,
  "findings": [
    { "type": "ssn", "count": 1, "description": "Social Security Number" },
    { "type": "email", "count": 1, "description": "Email Address" }
  ],
  "redacted_text": "My SSN is [SSN REDACTED] and email is [EMAIL REDACTED]"
}

Practical Workflow

Complete governance workflow with tool registration and HITL

javascript
// Practical workflow: Tool call with governance

// 1. Register a tool with governance policy
tork_register_tool({
  tool_name: "payment_transfer",
  allowed_agents: ["finance-agent"],
  allowed_targets: ["staging", "production"],
  max_calls_per_minute: 10,
  requires_hitl: true
})

// 2. Validate before execution
tork_validate_tool_call({
  agent_id: "finance-agent",
  tool_name: "payment_transfer",
  target_environment: "production",
  parameters: { amount: 5000, vendor: "acme-corp" }
})
// Returns: { allowed: false, requires_approval: true, approval_id: "..." }

// 3. Request human approval
tork_request_approval({
  agent_id: "finance-agent",
  tool_name: "payment_transfer",
  target: "acme-corp",
  parameters: '{"amount": 5000}',
  amount: 5000
})

// 4. Human approves (in Tork dashboard or via MCP)
tork_approve_action({
  approval_id: "tork_1234567890_abc",
  reviewer_id: "jane@company.com",
  reason: "Verified invoice"
})

// 5. Check for slicing attacks
tork_velocity_alert({
  agent_id: "finance-agent",
  target: "acme-corp"
})

Available Tools (25)

Click to expand tool details and parameters

Ready to Get Started?

Get your API key and start using Tork governance tools in your AI workflow today.

Documentation

Learn to integrate TORK

Upgrade Plan

Current: free

Support

Get help from our team