MCP Integration

The MCP (Model Context Protocol) server exposes Apart Intelligence as a set of tools that AI assistants can use directly. Your organizational knowledge becomes available inside Claude, Cursor, and any MCP-compatible tool — no copy-paste needed.

Setup

Quick example — add to your Claude Desktop or Cursor config:

claude_desktop_config.json / .cursor/mcp.json
{
  "mcpServers": {
    "apart-intelligence": {
      "command": "npx",
      "args": ["-y", "@apart-tech/intelligence-mcp"],
      "env": {
        "APART_API_URL": "https://api.intelligence.apart.tech",
        "APART_API_KEY": "apart_your-api-key"
      }
    }
  }
}

For Claude Code, install the CLI skills for the best experience:

ai codebase init

Tip

See the MCP Setup Guidefor detailed instructions for every supported tool — Claude Code, Cursor, VS Code, Windsurf, Codex CLI, Gemini CLI, Cline, JetBrains, and Zed — including tool-specific quirks, recommended approaches, and troubleshooting.

Available Tools

The MCP server provides 28 tools organized by category:

Read Tools

ToolDescription
search_knowledgeHybrid semantic + keyword search with workspace filtering
get_nodeRetrieve a specific node with its edges (supports PII decryption)
get_contextAssemble a context package via search + graph traversal
get_neighborhoodN-hop graph neighborhood of a node
list_draftsList nodes pending review
list_typesNode and edge type inventory
list_domainsFull domain taxonomy tree
list_workspacesAll available workspaces
get_workspaceWorkspace definition with filter rules
export_workspaceExport workspace as markdown

Write Tools

ToolDescription
add_nodeCreate a knowledge node (defaults to draft)
update_nodeModify an existing node
link_nodesCreate a typed edge between two nodes
set_statusChange lifecycle status (draft/approved/archived)
delete_nodeDelete a node and all its edges
delete_edgeDelete an edge between two nodes

Graph Health Tools

ToolDescription
health_reportComprehensive graph health report
validate_edgesDetect self-loops, duplicates, low-relevance connections
find_orphansFind nodes with no connections
find_duplicatesFind near-duplicate nodes by embedding similarity
find_islandsDetect disconnected clusters with optional bridge suggestions
suggest_linksSuggest missing links between similar unconnected nodes
analyze_relationship_typesFind semantically similar relationship types to merge
retype_edgesRename all edges of one type to another

PII Tools

ToolDescription
get_pii_configGet the organization's PII detection/encryption policy
test_piiTest text for PII detection

Maintenance Tools

ToolDescription
seed_domainsSeed the default domain taxonomy
re_embedRe-generate embeddings for nodes

Using Workspaces with MCP

Both search_knowledge and get_context accept a workspaceparameter that automatically applies the workspace's domain and type filters:

// Inside Claude, the AI can call:
search_knowledge({
  query: "deployment process",
  workspace: "tasks-ops"
})

// Or get full context:
get_context({
  query: "assignment resolution",
  workspace: "tasks-engineering"
})

This ensures the AI gets role-appropriate context. An engineering workspace returns architecture docs and code. A product workspace returns feature descriptions.

Tip

When an AI tool has access to your knowledge graph via MCP, it can answer questions grounded in your actual architecture, processes, and decisions — instead of generating generic responses.

Configuration

The MCP server requires two environment variables to connect to your Apart Intelligence API:

VariableDescription
APART_API_URLYour API server URL (e.g. https://api.intelligence.apart.tech)
APART_API_KEYYour API key (starts with apart_)

These are passed via the env field in your MCP configuration, as shown in the setup examples above. Get your API key by running ai login with the CLI, or from the Apart Intelligence dashboard.