2,500+ MCP servers ready to use
Vinkius

Cortex XSIAM MCP Server for LangChain 9 tools — connect in under 2 minutes

Built by Vinkius GDPR 9 Tools Framework

LangChain is the leading Python framework for composable LLM applications. Connect Cortex XSIAM through Vinkius and LangChain agents can call every tool natively. combine them with retrievers, memory, and output parsers for sophisticated AI pipelines.

Vinkius supports streamable HTTP and SSE.

python
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

async def main():
    # Your Vinkius token. get it at cloud.vinkius.com
    async with MultiServerMCPClient({
        "cortex-xsiam": {
            "transport": "streamable_http",
            "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
        }
    }) as client:
        tools = client.get_tools()
        agent = create_react_agent(
            ChatOpenAI(model="gpt-4o"),
            tools,
        )
        response = await agent.ainvoke({
            "messages": [{
                "role": "user",
                "content": "Using Cortex XSIAM, show me what tools are available.",
            }]
        })
        print(response["messages"][-1].content)

asyncio.run(main())
Cortex XSIAM
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Cortex XSIAM MCP Server

Connect Cortex XSIAM to any AI agent via MCP.

How to Connect Cortex XSIAM to LangChain via MCP

Follow these steps to integrate the Cortex XSIAM MCP Server with LangChain.

01

Install dependencies

Run pip install langchain langchain-mcp-adapters langgraph langchain-openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save the code and run python agent.py

04

Explore tools

The agent discovers 9 tools from Cortex XSIAM via MCP

Why Use LangChain with the Cortex XSIAM MCP Server

LangChain provides unique advantages when paired with Cortex XSIAM through the Model Context Protocol.

01

The largest ecosystem of integrations, chains, and agents. combine Cortex XSIAM MCP tools with 500+ LangChain components

02

Agent architecture supports ReAct, Plan-and-Execute, and custom strategies with full MCP tool access at every step

03

LangSmith tracing gives you complete visibility into tool calls, latencies, and token usage for production debugging

04

Memory and conversation persistence let agents maintain context across Cortex XSIAM queries for multi-turn workflows

Cortex XSIAM + LangChain Use Cases

Practical scenarios where LangChain combined with the Cortex XSIAM MCP Server delivers measurable value.

01

RAG with live data: combine Cortex XSIAM tool results with vector store retrievals for answers grounded in both real-time and historical data

02

Autonomous research agents: LangChain agents query Cortex XSIAM, synthesize findings, and generate comprehensive research reports

03

Multi-tool orchestration: chain Cortex XSIAM tools with web scrapers, databases, and calculators in a single agent run

04

Production monitoring: use LangSmith to trace every Cortex XSIAM tool call, measure latency, and optimize your agent's performance

Cortex XSIAM MCP Tools for LangChain (9)

These 9 tools become available when you connect Cortex XSIAM to LangChain via MCP:

01

execute_playbook

g., enrich IOCs, block IP, reset password). Requires playbook name and optional input arguments. Use this to speed up response times and ensure consistent handling of incidents. Execute an automated incident response playbook in Cortex XSIAM

02

get_alerts

Use this to review detection rules firing or analyze threat patterns. List security alerts detected by Cortex XSIAM

03

get_endpoints

Use this to audit endpoint coverage, identify disconnected hosts, or target remediation actions. List managed endpoints (hosts/devices) in Cortex XSIAM

04

get_incident_details

Requires the incident ID. Use this for deep investigation or context before taking action. Get detailed information about a specific security incident

05

get_incidents

Use this to monitor SOC queue, identify high-severity incidents, or track analyst workload. Supports sorting and limiting results. List security incidents in Cortex XSIAM

06

get_indicators

Use this to review threat intelligence or check if specific artifacts are known malicious. List indicators of compromise (IOCs) tracked in Cortex XSIAM

07

isolate_endpoint

Requires the endpoint ID. Use this immediately upon confirming a severe compromise to prevent lateral movement. Isolate a compromised endpoint from the network

08

run_xql_query

XQL allows searching logs, endpoints, network data, and more. Requires a valid XQL query string. Returns the results of the query. Use this for custom threat hunting, compliance reporting, or data analysis. Execute an XQL (Cortex Query Language) query for advanced threat hunting

09

scan_endpoint

Supports "quick" or "deep" scan types. Requires the endpoint ID. Use this to verify if a host is infected or after cleaning a threat. Trigger a malware scan on a specific endpoint

Troubleshooting Cortex XSIAM MCP Server with LangChain

Common issues when connecting Cortex XSIAM to LangChain through the Vinkius, and how to resolve them.

01

MultiServerMCPClient not found

Install: pip install langchain-mcp-adapters

Cortex XSIAM + LangChain FAQ

Common questions about integrating Cortex XSIAM MCP Server with LangChain.

01

How does LangChain connect to MCP servers?

Use langchain-mcp-adapters to create an MCP client. LangChain discovers all tools and wraps them as native LangChain tools compatible with any agent type.
02

Which LangChain agent types work with MCP?

All agent types including ReAct, OpenAI Functions, and custom agents work with MCP tools. The tools appear as standard LangChain tools after the adapter wraps them.
03

Can I trace MCP tool calls in LangSmith?

Yes. All MCP tool invocations appear as traced steps in LangSmith, showing input parameters, response payloads, latency, and token usage.

Connect Cortex XSIAM to LangChain

Get your token, paste the configuration, and start using 9 tools in under 2 minutes. No API key management needed.