Skip to main content

Model Context Protocol tool calling support for LangChain

Project description

langchain-mcp

Model Context Protocol tool calling support in LangChain.

Create a langchain_mcp.MCPToolkit with an mcp.ClientSession, then initialize() it and get_tools() to get the list of langchain_core.tools.BaseTools.

Example:

https://github.com/rectalogic/langchain-mcp/blob/8fa8445a24755bf91789f52718c32361ed916f46/tests/demo.py#L34-L43

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_mcp-0.1.0a1.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_mcp-0.1.0a1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_mcp-0.1.0a1.tar.gz.

File metadata

  • Download URL: langchain_mcp-0.1.0a1.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for langchain_mcp-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 17ac7fb7a2a5ca20da4a5d1b569e844f15d50aa2f5ab94c77e91fdd2d23f2e19
MD5 7c2da9b98cc25c57836208eed727b900
BLAKE2b-256 1e606726bfd879e9b813eea6e0a43ed147c7f9b48f65313b951f6fc477ddd20c

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_mcp-0.1.0a1.tar.gz:

Publisher: publish.yml on rectalogic/langchain-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_mcp-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_mcp-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 43cfad00e2d9068175f6ea0e0d109b7b2e9be3cbc033a8ce1e3d8d4aaac4328e
MD5 9b40d854d206d643a96b5fe3721c1436
BLAKE2b-256 6c6908aba961a5c6961ebf9bb1cac49d13111a27d5b98c324d70fd6d56f31ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_mcp-0.1.0a1-py3-none-any.whl:

Publisher: publish.yml on rectalogic/langchain-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page