How to Use the D-ID MCP in LangChain
Build LangChain pipelines that generate talking avatar videos and clips directly from your agentic workflows.
Works with every AI agent you already use
…and any MCP-compatible client
Connect D-ID MCP to LangChain
Create your Vinkius account to connect D-ID 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.
Automate video generation in LangChain chains
Generate videos directly from your LangChain agents using `list_presenters` and other video tools. This MCP Server lets your agent decide when a video is needed, pick a presenter, and trigger the generation automatically. You don't have to write custom API wrappers or manage HTTP requests manually inside your chain. The output of one step flows right into the next. Your agent can upload a custom headshot using `upload_image` and then immediately use that image to generate a talking head video using `create_talk`. All of this happens within a single, unified run, tracked end-to-end via LangSmith.
Generate custom talking heads from text or audio
Create talking avatar videos from text or audio using `create_talk` or `create_talk_audio`. Give your digital avatars a voice by feeding text or pre-recorded audio directly to the API. Your agent can select a stock presenter or upload custom assets, then trigger the lip-sync process automatically. If you want to move fast without managing custom images, call `create_clip` to build a video using D-ID's built-in stock presenters. You can monitor the video build status in real-time with `get_talk` or `get_clip` before passing the final MP4 URL to the next node in your graph.
Manage video assets and track credit usage
Track your video project library and manage credits using `list_talks` and `get_credits`. Keep your production pipeline clean by letting your agents handle storage and budget limits. The D-ID MCP Server lets your agent fetch a list of past video projects and clean up old or failed generations using `delete_talk` to keep your workspace organized. Running out of credits mid-run ruins automated workflows. To prevent this, your agent can run the credit check before initiating a heavy video generation batch, letting you pause or alert your team if resources run low.
Set up D-ID 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 D-ID 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({
"d-id-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 D-ID 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 D-ID. 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 D-ID MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the D-ID MCP today
We host it, we monitor it, we maintain it. You just paste one token.