How to Use the Equinix Metal MCP in LangChain
Build observable, chained workflows for Equinix Metal with LangChain. Stop managing infrastructure by hand.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Equinix Metal MCP to LangChain
Create your Vinkius account to connect Equinix Metal 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 API Key Rotation
This MCP server gives your agent the tools to manage Equinix Metal API keys. You can build a LangChain agent that runs on a schedule, calls `create_project_api_key` to generate a new key, pushes it to your secret manager, and then immediately calls `delete_api_key` on the old one. It's a simple, reliable chain. Because it’s LangChain, every step is traced in LangSmith. You see the exact inputs and outputs for each tool call. You'll know precisely which key was created and which was deleted, with timestamps, giving you a full audit trail for your security team.
Manage Team Onboarding and Access
Use a chain to handle new user invitations. Your agent can get a list of pending invites, call `get_invitation` to check the status of a specific user, and then decide what to do next. If an invitation is old or was sent to the wrong person, the agent can use `decline_invitation` to revoke it automatically. You can also manage user contact info. A chain can be triggered to call `create_email` when a new user joins, or use `update_email` to set their primary contact method. This keeps your Equinix Metal user directory in sync with your source of truth.
Your Equinix Metal LangChain Toolkit
This isn't just a random collection of API calls. The tools are designed to work together as steps in a larger process. Once you connect the MCP server, you get a set of functions your agent can reason about and execute in logical order. Your agent isn't just running one-off commands; it's executing a plan. Your agent can now build, manage, and tear down access credentials programmatically. It can handle user keys with `create_user_api_key` and `delete_user_api_key` as part of a larger CI/CD pipeline or an internal admin bot. It's direct control, right from your code.
Set up Equinix Metal 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 Equinix Metal 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({
"equinix-metal-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 Equinix Metal 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 Equinix Metal. 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 Equinix Metal MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Equinix Metal MCP today
We host it, we monitor it, we maintain it. You just paste one token.