Polarity for LangChain
io.github.radar989/polarity-mcp
Real-time threat intelligence lookups and IOC parsing from your self-hosted Polarity instance.
client:LangChain
transport:stdio
runtime:npm
Install Polarity in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"polarity-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@polarityio/mcp-connector"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs