How to Use the Jiguang Aurora / 极光 MCP in LangChain
Build multi-step messaging chains that route push notifications through Jiguang Aurora / 极光 using LangChain and real-time user data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Jiguang Aurora / 极光 MCP to LangChain
Create your Vinkius account to connect Jiguang Aurora / 极光 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 push triggers with LangChain and MCP Server
Route notifications based on live user data. Your agent calls `get_device_info` to check if a user is active in China, then immediately triggers `send_push` if they match your target segment. You do not write glue code. The output of the first tool feeds directly into the next link of your chain. Monitor every step of this execution using LangSmith. You see exactly when the MCP Server queries the Jiguang API, how many tokens were used, and the latency of the request. This keeps your messaging pipelines predictable and easy to debug.
Automate scheduling based on quota limits
Stop guessing if you have enough quota left for a massive campaign. Your agent runs `get_account_quota` before scheduling any broad-reach messages. If the quota is clear, it executes `create_schedule` to queue the campaign for the optimal local time. If the quota is running thin, the agent pauses the chain and alerts your team. You manage all of this dynamically through a single LangChain run, preventing failed deliveries before they happen.
Track and clean inactive device segments
Clean up your target lists without manual exports. The agent pulls delivery data with `get_push_report` and checks user engagement via `get_user_report`. It spots dead devices and immediately calls `update_device` to strip tags from inactive users. This loop keeps your push targets clean. Your deliverability rates go up because you stop wasting API calls on devices that uninstalled your app months ago.
Set up Jiguang Aurora / 极光 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 Jiguang Aurora / 极光 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({
"jiguang-aurora-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 Jiguang Aurora / 极光 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 Jiguang Aurora / 极光. 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 Jiguang Aurora / 极光 MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Jiguang Aurora / 极光 MCP today
We host it, we monitor it, we maintain it. You just paste one token.