dLocal MCP 服务器来了,它改变了一切

如果您曾经构建过支付集成,您就会知道:满是文档的标签页、反复试验的 API 调用,以及模糊的错误信息,这些都会让您放慢脚步。我们也经历过。所以我们构建了更好的东西。
Introducing the dLocal MCP Server (Model Context Protocol) — a developer-first tool that helps you access structured integration knowledge directly inside your GenAI-enabled IDE. Whether you use Copilot, Cursor, Claude, or another assistant, MCP brings dLocal documentation right to where you’re writing code.
开发者为何使用它
使用 dLocal MCP,您可以:
在您的 IDE 中直接提出集成问题
从我们的官方文档中获取清晰、上下文相关的答案
无需翻阅文档网站即可遵循最佳实践
保持专注于您的编辑器,而不是浏览器标签页
这不仅仅是方便——这是在不离开工作流程的情况下访问上下文的新方式。
工作原理
dLocal MCP 服务器充当您的 GenAI 工具与 dLocal 公共文档之间的桥梁。当您提出与集成相关的问题时,它会根据您的编码上下文,从我们的指南和支持文档中返回结构化的、相关的答案。
要设置它,请将此添加到您的 MCP 客户端配置中:
保存文件,重新启动客户端,您就可以开始了。
→ 完整的设置指南
实际用例:在不切换上下文的情况下实现 Smart Fields
假设您正在集成 Smart Fields,我们符合 PCI 的前端库,用于安全的卡片令牌化。
不必在文档页面和示例之间跳转,只需在您的 IDE 中提问:
“如何在 React 中使用 dLocal Smart Fields 对卡片进行令牌化?”
您将获得实际示例,例如这个完整的 React 实现:
结合一个简单的提交处理程序,它可以让您:
- 挂载卡片字段
- 收集用户输入
- 使用 dlocal.createToken(card, payload) 创建令牌
- 安全地将其发送到您的后端
这是可用于生产的代码,在上下文中提供 — 无需离开您的 IDE。
更智能的提示,更好的结果
即使是模糊的提示也会在回答之前进行优化。您问:
“如何为 Pago Efectivo 创建用户界面?”
MCP 将其转换为:
“展示一个在秘鲁使用 dLocal 重定向流程的 Pago Efectivo 前端示例,包括支付链接生成、过期处理和本地化提示。”
结果包括:
- 正确的 payment_method_id
- 正确结构的 /v1/payments 请求
- 提高转化率的 UI 和 UX 提示
无需猜测。无需切换标签页。只需您需要的答案。
业务影响
MCP 帮助开发者更快地行动 — 企业也能如此:
- 加快上市时间
- 减少实施错误
- 降低支持开
- Ramp up new devs faster
For merchants expanding in regions like LATAM, Africa, or Southeast Asia, this means real operational impact.
“dLocal MCP is a big step toward faster, smoother integrations. I support developers every day, and I know how valuable it is to get the right guidance—right when you need it. Now, you can stay in your IDE and keep building. This is just the beginning.”
Luis Hlatki - Lead Technical Account Manager at dLocal
Ready to get started?
Let’s build the future of payments—smarter, faster, and with fewer tabs open.