How to Use the Goaffpro MCP in LangChain
Run Goaffpro affiliate workflows through LangChain chains to automate payouts and trace every tool execution in LangSmith.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Goaffpro MCP to LangChain
Create your Vinkius account to connect Goaffpro 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 Goaffpro operations with LangChain
The `verify_api_connection` tool initializes your connection to the Goaffpro merchant API directly inside your active chain. This MCP Server lets your ReAct agents pull real-time partner data and pass it to downstream steps without manual coding. You can feed the output of `get_program_details` directly into subsequent prompts to ground your agent in your specific commission rules. This setup removes the friction of passing data between isolated API calls manually. Your agent runs the sequence, checks the output, and decides what to do next. If you want to check a partner's standing before issuing a reward, the agent runs `get_affiliate_details` and feeds that data straight into the next link of your chain.
Trace affiliate payouts with LangSmith
The `grant_affiliate_reward` tool issues manual bonuses or sign-up rewards to partners through your LangChain run. Every time your agent triggers this action, LangSmith records the exact inputs, latency, and token cost. You see exactly why the agent decided to reward a partner, preventing double-payout errors before they hit your ledger. This visibility helps you debug complex multi-step reasoning runs. If a payout fails, you do not have to guess what went wrong in the background. You check the LangSmith trace, inspect the variables passed to `list_affiliate_payouts`, and fix the logic immediately.
Automate partner onboarding pipelines
The `register_new_affiliate` tool adds new partners to your referral program via automated LangChain runs. Your agent receives incoming application emails, extracts the necessary fields, and runs the registration tool in one go. You combine this with other integrations to sync the new partner's data with your internal databases or CRM tables. Instead of writing custom glue code for every new contact, you let the agent handle the logic. This MCP integration uses `find_affiliate_by_email` to check for duplicates before creating a new record. This keeps your partner list clean and ensures your database stays in sync with Goaffpro.
Set up Goaffpro 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 Goaffpro 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({
"goaffpro-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 Goaffpro 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 Goaffpro. 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 Goaffpro MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Goaffpro MCP today
We host it, we monitor it, we maintain it. You just paste one token.