How to Use the Freshservice MCP in LangChain
Build multi-step IT support chains with LangChain and the Freshservice MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Freshservice MCP to LangChain
Create your Vinkius account to connect Freshservice 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.
Multi-Step Incident Resolution (LangChain)
`list_itsm_tickets` pulls your active queue directly into your LangChain run. Your agent inspects this list, picks the oldest critical ticket, and instantly triggers `get_ticket_details` to analyze the issue. By chaining these tools, you bypass manual triage entirely. `list_it_assets` runs immediately after the queue check to match the serial number of any reported broken laptop. Through LangSmith, you trace every step of this multi-tool execution to see exactly why a decision was made.
Automated Change and Problem Analysis
`list_it_problems` identifies recurring infrastructure failures that your LangChain agent can correlate with open change requests. The agent grabs active issues, queries their history, and executes `list_change_requests` to see if a recent deployment caused the outage. `list_change_requests` executes right after the problem check to see if a recent deployment caused the outage. If a correlation is spotted, the agent calls `create_itsm_ticket` to alert the on-call engineer with the exact details.
Context-Aware Requester Routing
`list_requesters` allows your LangChain pipeline to map incoming support emails to existing user records before routing. Matching the sender's address helps the chain identify who needs help. `get_requester_details` pulls the matching user's profile to check their assigned hardware. Once the profile is established, the agent queries `list_support_agents` to find an available technician with the right expertise.
Set up Freshservice 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 Freshservice 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({
"freshservice-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 Freshservice 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 Freshservice. 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 Freshservice MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Freshservice MCP today
We host it, we monitor it, we maintain it. You just paste one token.