Skip to main content

LangChain-compatible MCP client with OAuth 2.0 Client Credentials (M2M) flow support

Project description

langchain-mcp-m2m

LangChain MCP client with OAuth 2.0 Client Credentials (M2M) support.

Install

pip install langchain-mcp-m2m

Usage

from langchain_mcp_m2m import MCPClientCredentials

client = MCPClientCredentials({
    "server": {
        "url": "http://localhost:3301/mcp",
        "transport": "streamable_http",
        "auth": {
            "client_id": "your-client-id",
            "client_secret": "your-client-secret"
        }
    }
})

await client.initialize()
tools = await client.get_tools()

Full documentation: https://github.com/LocusTechnologies/langchain-mcp-m2m

License

MIT

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_m2m-0.1.0.tar.gz (8.9 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_m2m-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_mcp_m2m-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_mcp_m2m-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for langchain_mcp_m2m-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0df7da1fc9efaf5435e74cf69f9f4334c41d0c1c33b864f7f2ead0d3d787cf63
MD5 6e29b12fd138edf32b0b9e038e1ed1ea
BLAKE2b-256 8edb28245db746c1e96e758baa583cd5560e58d2a9cc6ea52b483782f835a585

See more details on using hashes here.

File details

Details for the file langchain_mcp_m2m-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_mcp_m2m-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a4448350cb3ca57a8e9e5bc489bb41b79e638809764b649d9d7421e96063ae
MD5 25da4569bbbfb31eba83ed04d230cd15
BLAKE2b-256 3228bfd1b3c9d70d4729a35af6f773fdbd5b8831d9f92ddcd530cbc4820a641c

See more details on using hashes here.

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