/AI15h ago

LangChain Deepagents Support Custom MCP Server Auth And Finance Integrations

2253143.7K
Original postHarrison Chase#739

Spent more time learning deepagents from @LangChain with primary focus on integrating MCP servers with auth that doesn't conform completely to the OAuth standard. ( In prep of a work coming my way )

Below POC is on top of yfinance api by encapsulating it in an MCP server. MCP server isn't a 1:1 api mapping with yfinance, but a set of meta api with focus on valuation, quick ratios, fundamental analysis and clubbing gemini web search for grounding before responding ( not recommended as you can spot hallucinated or wrong information being picked up on pricing ).

Inherited OAuthProvider libs/code/deepagents_code/mcp_providers/base.py and made the changes for custom provider.

Found deepagents codebase easy to understand and extend. If you are looking to build a custom harness for a very domain specific task where you want to bring your own compaction logic, enforce token quotas / max tool calls to make and enforce some sequence based on rule engine / switch tool selection logic itself to an GEPA optimized prompt / intercept tool calls and pass them thru a custom guardrail before and after call it's easy to find the interface, understand the functionality and swap it. It's thoughtfully designed such that you can swap sub-components and bring just want you need.

Let million harness bloom.

12:13 PM · Jun 6, 2026 · 3.7K Views
Sentiment

Users are enthusiastic about extending LangChain DeepAgents for custom MCP server integration because it makes building easier and more fun.

Pos
100.0%
Neg
0.0%
1 comments with sentiment.
Cluster Engagement
Posts from X
Most Activity
Most Activity
VIEWS31LIKES1
Viv@Vtrivedy10

@getpy @LangChain let a million harnesses bloom 🔥

do share any feedback as you build, always looking to make it easier and more to fun to build on :)

13hViews 31Likes 1