How to Use the api.video MCP in LangChain
Build agents that manage your entire video library using LangChain and the api.video MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect api.video MCP to LangChain
Create your Vinkius account to connect api.video 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.
Chain video operations together
Build agents that perform multi-step video tasks. Your agent can initialize a new video with `create_video_object`, then immediately use the returned ID to modify its metadata with `update_video_details` in the next step of the chain. This isn't just about single actions. You can design complex logic, like having an agent call `list_videos` with a specific tag, then pass that list to `delete_video` to automatically clean up old content. It's all one fluid operation.
Feed live video data into reasoning loops
Use tools like `list_videos` and `get_video_details` to give your agents a real-time view of your media library. Your agent can pull this data into its reasoning process to decide what to do next. And because you're using LangChain, you get full observability through LangSmith. You can trace exactly how your agent uses the api.video tools, seeing every input, output, and latency spike. It makes debugging complex chains much simpler.
Combine video analytics with other tools
This MCP Server makes api.video just another tool in your agent's toolbox. Have your agent pull performance data for a specific video using `get_video_analytics`. Then, in the same chain, it can pass those metrics to a completely different tool—one that writes a report to a database, sends a Slack alert, or even generates a new title suggestion. Your agent decides how to connect the dots.
Set up api.video 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 api.video 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({
"apivideo-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 api.video 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 api.video. 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 api.video MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the api.video MCP today
We host it, we monitor it, we maintain it. You just paste one token.