How to Use the HCL AppScan MCP in LangChain
Build security reasoning pipelines by connecting HCL AppScan directly to your LangChain agents.
Works with every AI agent you already use
…and any MCP-compatible client
Connect HCL AppScan MCP to LangChain
Create your Vinkius account to connect HCL AppScan to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Wire Vulnerability Scans into ReAct Agents
The `start_dast_scan` tool lets your LangChain agent initiate a Dynamic Analysis scan directly from a conversation or automated trigger. You pass the target application ID, and the agent fires off the request. Instead of switching tabs to check progress, the pipeline loops the `get_scan` tool to monitor status until completion. This setup turns manual security testing into an autonomous chain. When the scan finishes, your pipeline automatically pulls the results and feeds them into the next step. Every execution gets logged in LangSmith, so you know exactly how long the scan took and which parameters the agent decided to use.
Chain Issue Triage and Remediation
You fetch raw vulnerabilities using the `list_issues` tool. Your agent pulls the latest findings for a specific application and decides which ones actually matter. If it spots a critical injection flaw, it uses `get_issue` to grab the deep technical details, including the exact payload that triggered the alert. Those details become the input for the next link in your chain. You can route the raw vulnerability data into a Jira ticket creator or a Slack notification node. The agent handles the triage logic, filtering out low-priority noise before a human ever looks at the dashboard.
Audit Application Inventory via MCP Server
Managing scope starts with the `list_apps` tool, giving your agent a complete view of your AppScan inventory. It retrieves metadata for every configured application in the account. If you run local agents, `list_presence` pulls the status of your internal scanning infrastructure. You combine these endpoints to build an autonomous inventory auditor. The agent cross-references active applications with their local presence availability. If an internal app lacks a valid scanning path, the pipeline flags the misconfiguration immediately.
Set up HCL AppScan MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes HCL AppScan tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"hcl-appscan-mcp": {
"transport": "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,
)
result = await agent.ainvoke({
"messages": "List recent HCL AppScan transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by HCL AppScan. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about HCL AppScan MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the HCL AppScan MCP today
We host it, we monitor it, we maintain it. You just paste one token.