No project description provided
Project description
🦜 🔗 Langchain MCP Client
This simple Model Context Protocol (MCP) client demonstrates the use of MCP server tools by LangChain ReAct Agent.
It leverages a utility function convert_mcp_to_langchain_tools() from
langchain_mcp_tools.
This function handles parallel initialization of specified multiple MCP servers
and converts their available tools into a list of LangChain-compatible tools
(List[BaseTool]).
This is an adpated version of: https://github.com/hideya/mcp-client-langchain-py.
Usage
python langchain_mcp_client/cli_chat.py
.env file is required with the all the necessary API_KEYS.
Models to invoke and MCP servers to use can be configured in llm_mcp_config.json5.
At the prompt, you can simply press Enter to use example queries that perform MCP server tool invocations.-
Example queries can also be configured in llm_mcp_config.json5.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_mcp_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_mcp_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
883be04f83f03a64a1f785da41127ae877fa134a15385faa0e703ea907f9040c
|
|
| MD5 |
1d73f4ee3665cfd2218e1b883341f32d
|
|
| BLAKE2b-256 |
c4994b0a095ce9f94d32d7dbc5130695fc6d5bf3c70ac2fb69a0b4d248871044
|