How to Use the DataForSEO MCP in LangChain
Pull live SERP and product data directly into your LangChain agents with this MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect DataForSEO MCP to LangChain
Create your Vinkius account to connect DataForSEO 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 SEO Tools Together
This server gives your agents direct access to the DataForSEO API. You can run `google_organic` to get search rankings, then immediately feed those URLs into another tool. It's not just about one-off lookups. Build a chain that uses `google_news` to find recent articles about a topic, and then uses `youtube_organic` to find related videos. LangSmith lets you see the whole process, so you know exactly what data passed between each step.
Automate Competitor Research
Point your LangChain agent at a list of competitors. This MCP server gives you a single interface for tools like `bing_organic` and `yahoo_organic` to build a full picture of their search presence beyond just Google. No more manually checking ten different sites. You can even check product data. The `amazon_asin` tool pulls details on specific products. Your agent can find a product on a SERP, then jump straight to checking its Amazon info in the next step of the chain.
Build Agents with a Purpose
The tools on this MCP Server are the building blocks for your agent's skills. Instead of just talking, your agent can do things—like check rankings with `yandex_organic` for CIS regions or analyze local business data with `google_maps`. Because LangChain lets you combine toolsets, you can mix these SEO tools with your own private data sources. The agent decides which tool to use based on the goal, giving you a flexible way to automate marketing tasks.
Set up DataForSEO 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 DataForSEO 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({
"dataforseo-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 DataForSEO 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 DataForSEO. 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 DataForSEO MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the DataForSEO MCP today
We host it, we monitor it, we maintain it. You just paste one token.