How to Use the Fiscal Data (U.S. Treasury) MCP in LangChain
Chain Fiscal Data (U.S. Treasury) directly into your LangChain agents for precise, multi-step financial reasoning.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Fiscal Data (U.S. Treasury) MCP to LangChain
Create your Vinkius account to connect Fiscal Data (U.S. Treasury) 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.
Automated pipeline construction
Feed `get_mts_table_1` outputs directly into your reasoning chains. The agent treats fiscal data as a primary input, moving from raw numbers to actionable analysis without manual intervention. LangChain handles the hand-off between tools. You define the sequence, and the agent executes the logic across your existing vector stores and database connectors.
Multi-server data orchestration
Aggregate `get_rates_of_exchange` with your private financial records in one session. This MCP Server allows your agent to pull official rates while querying internal databases simultaneously. Visibility remains tight through LangSmith tracing. You see exactly how the agent parses the Treasury data before it makes a decision.
Dynamic fiscal dataset queries
Access any of the 170+ endpoints using `query_dataset`. Your LangChain agent interprets the schema and builds the request path on the fly based on the user's prompt. This creates a flexible bridge between government sources and your logic. No hard-coded endpoints—just the raw data your agent needs to build its response.
Set up Fiscal Data (U.S. Treasury) 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 Fiscal Data (U.S. Treasury) 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({
"fiscal-data-us-treasury-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 Fiscal Data (U.S. Treasury) 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 Fiscal Data (U.S. Treasury). 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 Fiscal Data (U.S. Treasury) MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Fiscal Data (U.S. Treasury) MCP today
We host it, we monitor it, we maintain it. You just paste one token.