How to Use the Sunsama MCP in LangChain
Build multi-step reasoning chains with the Sunsama MCP Server and LangChain.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Sunsama MCP to LangChain
Create your Vinkius account to connect Sunsama to LangChain — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Orchestrate task creation across multiple sources.
Need to map out a complex project timeline? You can kick off new items using `create_task(text, plannedDate)`. This handles the core scheduling logic for your entire workflow. It's more than just logging tasks. If you need to update an existing item or delete it permanently with `delete_task`, LangChain builds these steps into a single chain call. The agent decides the full sequence.
Understand user and project context quickly.
Before making any changes, you need to know what's going on. Call `get_user_profile()` to grab details about who's running the process. You can also use `list_channels()` or `list_contexts()` to map out available workspaces. These foundational calls give the agent the necessary scope. When building a multi-step chain, knowing these boundaries is critical for accurate task management.
Manage and filter your entire task list.
You can get a full picture of everything by calling `list_tasks()`. This tool lets you narrow the focus by filtering tasks with specific dates. It’s great for planning sprints. If you need to check on one item specifically, run `get_task_details(taskId)`. These tools allow LangChain agents to gather data, decide what's missing, and then execute the necessary write operations.
Set up Sunsama 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 Sunsama 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({
"sunsama-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 Sunsama 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 Sunsama. 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 Sunsama MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Sunsama MCP today
We host it, we monitor it, we maintain it. You just paste one token.