
mcp langchain agents with user context api
一个使用LangChain框架实现的多智能体系统,通过FastAPI提供用户上下文管理和并发支持。
Repository Info
About This Server
一个使用LangChain框架实现的多智能体系统,通过FastAPI提供用户上下文管理和并发支持。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
mcp-langchain-agents-with-user-context-api
-
tool
jobsearch agent news agent -
agentic ai tool (langchain) - MCP structure
agent determines based on user query which tool to invode -
rag to store & retrive user level historical conversation for context
-
fastapi
user management concurrency user level context reterival -
tested concurrency of the rest-api
-
Note MCP is not implemented here from mcp package, but under folder "additional_codes_mcp_like_implementation", a fast api server is created mcp_job_search and the same is called in code llm_microservice. This is same concept as MCP
note:
ai tools were leveraged and used as assistant to create codes in this repo
databricks was used as llm were already provided & served as endpoint
alternative approach:
1. deploy fastapi in AKS instead of long running job clusters -- that is more optimal for hosting microservice
2. creata a custom endpoint in databricks model serving
next steps:
create a approach for evaluation
1. evaluate at each process
2. overall functional evaluation
Quick Start
Clone the repository
git clone https://github.com/ml-engg/mcp-langchain-agents-with-user-context-apiInstall dependencies
cd mcp-langchain-agents-with-user-context-api
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.