Skip to content
LangChain

neuronscope for LangChain

io.github.rudrendupaul/neuronscope

Traces which neurons and attention heads drive a language model's output via MCP tools.

client:LangChain transport:stdio runtime:pypi

Install neuronscope in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "neuronscope": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["neuronscope-cli"],
        }
})

tools = await client.get_tools()

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

neuronscope in other clients