Docs/MCP Integration

MCP Integration

Use Jarvis SDK modules natively through the Model Context Protocol. Any MCP-compatible agent can discover and use our modules.

What is MCP?

The Model Context Protocol (MCP) is the universal standard for connecting AI models to external tools and data. With 97M+ monthly SDK downloads, it's the most widely adopted agent-to-tool protocol.

Jarvis SDK is a fully compliant MCP server. When you connect it, your agent gets access to all 108+ modules as native MCP tools.

Setup

1. Install the MCP server

npm install -g @jarvis-sdk/mcp-server

2. Add to your MCP config

// .mcp.json or claude_desktop_config.json
{
  "mcpServers": {
    "jarvis-sdk": {
      "command": "npx",
      "args": ["@jarvis-sdk/mcp-server"],
      "env": {
        "JARVIS_API_KEY": "jsk_your_key_here"
      }
    }
  }
}

3. Your agent now has these tools

ToolDescription
jarvis_sdk_searchSearch modules by capability
jarvis_sdk_installInstall a module with config
jarvis_sdk_uninstallRemove an installed module
jarvis_sdk_runExecute a module action
jarvis_sdk_buildBuild/compile a module
jarvis_sdk_statusCheck module health
jarvis_sdk_diagnoseDiagnose module issues
jarvis_sdk_healAuto-fix module problems
jarvis_sdk_recommendGet module recommendations
jarvis_sdk_contextGet execution context
jarvis_sdk_intelligenceCross-agent insights
jarvis_sdk_gap_analysisFind missing capabilities

Example: Agent Using MCP

Once connected, an agent like Claude can use Jarvis SDK tools naturally:

Agent receives task:
"Draft a reply to the latest email from the investor"
Agent calls:
jarvis_sdk_search({ query: "email reply drafting" })
→ [{ name: "gmail-auto-responder", trust_score: 94 }]

jarvis_sdk_install({ name: "gmail-auto-responder" })
→ { status: "installed" }

jarvis_sdk_run({
  name: "gmail-auto-responder",
  action: "draft_reply",
  input: {
    email_id: "latest_investor_email",
    instructions: "Professional, enthusiastic, thank for meeting",
    tone: "formal"
  }
})
→ { draft_id: "d_123", preview: "Dear Sarah, ..." }

MCP Registry

Jarvis SDK is registered on the official MCP registry at registry.modelcontextprotocol.io. Agents with MCP discovery can find us automatically.