{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "langgenius-dify--run-a-sandboxed-dify-agent-with-mcp-tools",
 "repo": "langgenius/dify",
 "repo_url": "https://github.com/langgenius/dify",
 "repo_slug": "langgenius-dify",
 "title": "Give a Dify agent tools from MCP servers and the marketplace",
 "page_title": "How to give a Dify agent tools from MCP servers and the marketplace with Dify",
 "summary": "Describe an agent, connect tools or MCP servers, and use it as a chat app or a step inside a workflow.",
 "who": "A builder who wants an agent that can run commands and use tools without risking the host.",
 "problem": "Agents that touch files and software need a safe place to run.",
 "outcome": "An agent with its own sandbox and the tools you chose, callable from chat or a workflow.",
 "steps": [
  "Create an agent and describe what it should do",
  "Give it skills and connect tools from Dify Marketplace, MCP servers or your own APIs",
  "Test it as a chat app",
  "Drop it into a workflow as one step and watch runs in the observability view"
 ],
 "agent_prompt": "Build a langgenius/dify agent that <task>, connect the <MCP server or tool>, test it in chat, then add it as a step in a workflow that <workflow>. List every tool it can call.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Docker and Docker Compose v2.24.0 or later for self-hosting",
  "A machine with at least 2 CPU cores and 4 GiB RAM",
  "API keys for the model providers you use"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/langgenius-dify/run-a-sandboxed-dify-agent-with-mcp-tools/",
 "md": "https://dedupedai.com/use-cases/langgenius-dify/run-a-sandboxed-dify-agent-with-mcp-tools/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/langgenius-dify--run-a-sandboxed-dify-agent-with-mcp-tools.json",
 "api_version": "v1"
}
