langchain-mcp-m2m


Namelangchain-mcp-m2m JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryLangChain-compatible MCP client with OAuth 2.0 Client Credentials (M2M) flow support
upload_time2025-10-20 14:33:20
maintainerNone
docs_urlNone
authorLocus Technologies
requires_python>=3.10
licenseMIT
keywords anthropic auth authentication client-credentials cognito langchain m2m machine-to-machine mcp model-context-protocol oauth oauth2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # langchain-mcp-m2m

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

## Install

```bash
pip install langchain-mcp-m2m
```

## Usage

```python
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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "langchain-mcp-m2m",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "anthropic, auth, authentication, client-credentials, cognito, langchain, m2m, machine-to-machine, mcp, model-context-protocol, oauth, oauth2",
    "author": "Locus Technologies",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8e/db/28245db746c1e96e758baa583cd5560e58d2a9cc6ea52b483782f835a585/langchain_mcp_m2m-0.1.0.tar.gz",
    "platform": null,
    "description": "# langchain-mcp-m2m\n\nLangChain MCP client with OAuth 2.0 Client Credentials (M2M) support.\n\n## Install\n\n```bash\npip install langchain-mcp-m2m\n```\n\n## Usage\n\n```python\nfrom langchain_mcp_m2m import MCPClientCredentials\n\nclient = MCPClientCredentials({\n    \"server\": {\n        \"url\": \"http://localhost:3301/mcp\",\n        \"transport\": \"streamable_http\",\n        \"auth\": {\n            \"client_id\": \"your-client-id\",\n            \"client_secret\": \"your-client-secret\"\n        }\n    }\n})\n\nawait client.initialize()\ntools = await client.get_tools()\n```\n\nFull documentation: https://github.com/LocusTechnologies/langchain-mcp-m2m\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "LangChain-compatible MCP client with OAuth 2.0 Client Credentials (M2M) flow support",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://paywithlocus.com",
        "Issues": "https://github.com/LocusTechnologies/langchain-mcp-m2m/issues",
        "Repository": "https://github.com/LocusTechnologies/langchain-mcp-m2m"
    },
    "split_keywords": [
        "anthropic",
        " auth",
        " authentication",
        " client-credentials",
        " cognito",
        " langchain",
        " m2m",
        " machine-to-machine",
        " mcp",
        " model-context-protocol",
        " oauth",
        " oauth2"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3228bfd1b3c9d70d4729a35af6f773fdbd5b8831d9f92ddcd530cbc4820a641c",
                "md5": "25da4569bbbfb31eba83ed04d230cd15",
                "sha256": "a0a4448350cb3ca57a8e9e5bc489bb41b79e638809764b649d9d7421e96063ae"
            },
            "downloads": -1,
            "filename": "langchain_mcp_m2m-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25da4569bbbfb31eba83ed04d230cd15",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 10353,
            "upload_time": "2025-10-20T14:33:19",
            "upload_time_iso_8601": "2025-10-20T14:33:19.365660Z",
            "url": "https://files.pythonhosted.org/packages/32/28/bfd1b3c9d70d4729a35af6f773fdbd5b8831d9f92ddcd530cbc4820a641c/langchain_mcp_m2m-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8edb28245db746c1e96e758baa583cd5560e58d2a9cc6ea52b483782f835a585",
                "md5": "6e29b12fd138edf32b0b9e038e1ed1ea",
                "sha256": "0df7da1fc9efaf5435e74cf69f9f4334c41d0c1c33b864f7f2ead0d3d787cf63"
            },
            "downloads": -1,
            "filename": "langchain_mcp_m2m-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6e29b12fd138edf32b0b9e038e1ed1ea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 8871,
            "upload_time": "2025-10-20T14:33:20",
            "upload_time_iso_8601": "2025-10-20T14:33:20.608389Z",
            "url": "https://files.pythonhosted.org/packages/8e/db/28245db746c1e96e758baa583cd5560e58d2a9cc6ea52b483782f835a585/langchain_mcp_m2m-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-20 14:33:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LocusTechnologies",
    "github_project": "langchain-mcp-m2m",
    "github_not_found": true,
    "lcname": "langchain-mcp-m2m"
}
        
Elapsed time: 1.97406s