Skip to content
LangChain

GhostPaw Affinity for LangChain

io.github.ghostpawjs/affinity

Local relationship model and social CRM for contacts, relationships, evidence, and commitments.

client:LangChain transport:stdio runtime:npm

Install GhostPaw Affinity in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "affinity": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@ghostpaw/affinity"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

GhostPaw Affinity in other clients