Surfski for LangChain
io.github.rayhu/surfski
Self-hosted remote MCP server: search, read and draft across many Gmail / Workspace mailboxes
client:LangChain
transport:stdio
runtime:oci
Install Surfski in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"surfski": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/rayhu/surfski:v0.1.1"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs