How to Use the Circle.so MCP in LangChain
Run multi-step LangChain reasoning loops over your community data using this Circle.so MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Circle.so MCP to LangChain
Create your Vinkius account to connect Circle.so to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Chain Circle.so data into LangChain reasoning loops
This MCP server exposes `list_community_posts` and `list_community_topics` so your LangChain agents can feed community discussions directly into downstream LLM chains. You get raw JSON inputs that map straight to your LangChain prompts, letting you build automated summaries of what your users talk about. Your agent inspects the output of `list_community_topics`, decides if a topic needs deeper analysis, and then automatically invokes `list_post_comments` in the next link of the chain. LangSmith tracks every transition, showing you exactly how much latency each tool call adds to your community moderation pipeline.
Map community spaces and groups programmatically
The `list_community_spaces` and `list_space_groups` tools let your LangChain agent map out your community structure on the fly. Instead of hardcoding space IDs, the agent queries your actual Circle.so layout to route notifications or content to the right destination. You write the setup code once using `MultiServerMCPClient` to map your Circle.so spaces alongside your other platforms. The agent resolves which space matches your criteria, ensuring your custom moderation chains never post to the wrong sub-community.
Moderate member profiles with LangSmith observability
Running `list_community_members` alongside `get_my_circle_profile` lets your LangChain agent audit member access levels and flag suspicious accounts. The agent checks the profile details against your internal criteria to keep your community safe. Every single member check gets logged in LangSmith, giving you a full audit trail of how the agent handled each account. You see the exact tokens spent and the raw JSON returned from the Circle.so API.
Set up Circle.so MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Circle.so tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"circleso-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Circle.so transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Circle.so. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Circle.so MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Circle.so MCP today
We host it, we monitor it, we maintain it. You just paste one token.