How to Use the ConfigCat MCP in LangChain
Control feature flags inside your LangChain reasoning loops.
Works with every AI agent you already use
…and any MCP-compatible client
Connect ConfigCat MCP to LangChain
Create your Vinkius account to connect ConfigCat 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 ConfigCat flag checks with app logic
LangChain agents can check flag states using this MCP Server before executing downstream steps. When your agent runs a chain, it calls `get_setting_value` to decide whether to fetch data from a legacy database or a new API. This stops the agent from executing broken code paths in production. The output of this check flows directly into the next chain link. If a feature is off, the agent pivots and uses alternative tools, keeping the entire reasoning loop intact without manual intervention.
Track flag changes with LangSmith tracing
Every time your LangChain agent calls `update_setting_value` to toggle a feature, LangSmith logs the exact payload. You see the latency of the tool call and the exact targeting rules modified during the run. This visibility makes debugging agent mistakes simple. If your agent incorrectly uses `create_segment` during a test run, you can trace the inputs directly back to the prompt that triggered the action.
Build multi-step LangChain MCP Server release loops
This MCP Server lets you build complex deployment pipelines where the agent decides when to release code. The agent can run `list_environments` to find your staging target, check its status, and then run `create_setting` to spin up a new flag. Because LangChain handles multi-step loops naturally, your agent can verify staging metrics before calling `update_setting_value` to roll the change out to production.
Set up ConfigCat 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 ConfigCat 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({
"configcat-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 ConfigCat 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 ConfigCat. 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 ConfigCat MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the ConfigCat MCP today
We host it, we monitor it, we maintain it. You just paste one token.