{"id":17568,"date":"2025-09-24T11:45:06","date_gmt":"2025-09-24T18:45:06","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=17568"},"modified":"2025-09-24T11:45:06","modified_gmt":"2025-09-24T18:45:06","slug":"building-ai-agent-couchbase-cagent","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/es\/building-ai-agent-couchbase-cagent\/","title":{"rendered":"Building an AI Agent with Couchbase MCP and cagent"},"content":{"rendered":"<p>The AI landscape is rapidly transitioning from simple chatbots to AI agents that can plan, reason, and execute tasks autonomously. At the forefront is <em>Docker cagent<\/em> \u2013 a powerful, easy-to-use, multi-agent runtime that&#8217;s democratizing AI agent development for developers worldwide.<\/p>\n<p>Unlike traditional AI chatbots that provide simple text based response, agentic AI systems built with <a href=\"https:\/\/docs.docker.com\/ai\/cagent\/\" target=\"_blank\" rel=\"noopener\">cagent<\/a> can break down complex issues into manageable tasks, delegate work to specialized AI agents, while leveraging external tools and APIs through the Model Context Protocol (MCP).<\/p>\n<p>In this post, we\u2019ll walk through setting up an AI Agent that understands natural language queries, interact with a Couchbase instance to read\/write data, how to leverage the <a href=\"https:\/\/github.com\/Couchbase-Ecosystem\/mcp-server-couchbase\" target=\"_blank\" rel=\"noopener\">Couchbase MCP server<\/a> and how you can easily ship this agent to production using cagent.<\/p>\n<h2 style=\"font-weight: 400;\">What is cagent?<\/h2>\n<p><em>cagent<\/em>\u00a0is an open-source, customizable multi-agent runtime by Docker that makes it simple to orchestrate AI agents with specialized tools and capabilities in order to manage interactions between them.<\/p>\n<h2 style=\"font-weight: 400;\">Key features of cagent<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\">YAML configuration: Define your entire agent ecosystem using simple, declarative YAML files \u2013 no complex coding is required.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Built-in reasoning capabilities: tools like &#8220;think&#8221;, &#8220;todo&#8221;, and &#8220;memory&#8221; enable sophisticated problem-solving and context retention across sessions.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Support for multiple AI providers: Support for multiple AI providers like OpenAI, Anthropic, Google Gemini, and Docker Model Runner.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Rich ecosystem support: Agents can access external tools, APIs, and services through the\u00a0 Model Context Protocol (MCP).<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>To learn how cagent works, you can refer to the <a href=\"https:\/\/docs.docker.com\/ai\/cagent\/\" target=\"_blank\" rel=\"noopener\">official docs<\/a>El <a href=\"https:\/\/github.com\/docker\/cagent\/blob\/main\/README.md\" target=\"_blank\" rel=\"noopener\">l\u00e9ame<\/a> y el <a href=\"https:\/\/github.com\/docker\/cagent\/blob\/main\/docs\/USAGE.md\" target=\"_blank\" rel=\"noopener\">uso<\/a> file. The concept is really easy to understand and the YAML structure defines everything limited to the required elements.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"font-weight: 400;\">Creating a Couchbase MCP AI agent with cagent<\/h2>\n<h3 style=\"font-weight: 400;\">Installing cagent<\/h3>\n<p>First download cagent from the releases page of the project&#8217;s <a href=\"https:\/\/github.com\/docker\/cagent\/blob\/main\/examples\/couchbase_agent.yaml\" target=\"_blank\" rel=\"noopener\">Repositorio GitHub<\/a>.<\/p>\n<p>Once you&#8217;ve downloaded the appropriate binary for your platform, you may need to give it executable permissions. On macOS and Linux, this is done with the following command:<\/p>\n<pre class=\"nums:false lang:default decode:true\"># linux amd64 build example\r\nchmod +x \/path\/to\/downloads\/cagent-linux-amd64\r\n<\/pre>\n<p>You can then rename the binary to cagent and configure your <em>SENDERO<\/em> to be able to find it.<\/p>\n<p>Based on the models you configure your agents to use, you will need to set the corresponding provider API key accordingly, all theses keys are optional, you will likely need at least one of these:<\/p>\n<pre class=\"nums:false lang:default decode:true\"># For OpenAI models\r\nexport OPENAI_API_KEY=your_api_key_here\r\n<\/pre>\n<h3 style=\"font-weight: 400;\">Creating a new agent<\/h3>\n<p>Using the command: cagent new<\/p>\n<p>You can quickly generate agents or multi-agent teams using a single prompt, using the command: <code>cagent new<\/code>.<\/p>\n<p>In this example, we will create a simple agent that understands natural language queries, interact with a Couchbase instance to retrieve or manipulate data, and provide meaningful responses using the Couchbase MCP Server. For the Couchbase MCP server we will use the <a href=\"https:\/\/hub.docker.com\/mcp\/server\/couchbase\/overview\" target=\"_blank\" rel=\"noopener\">Docker MCP Catalog<\/a>.<\/p>\n<pre class=\"nums:false lang:default decode:true\">cagent new --model openai\/gpt-4.1 --max-tokens 32000<\/pre>\n<p>We will add a prompt for our agent to leverage the Couchbase MCP server:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-17571\" style=\"border: 1px solid Gainsboro;\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-1024x430.png\" alt=\"\" width=\"900\" height=\"378\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-1024x430.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-300x126.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-768x323.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-1536x645.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-18x8.png 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2-1320x555.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image3-2.png 1999w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>This generates YAML code and is saved in <i>couchbase_agent.yaml<\/i>. This single agent (root) will serve as the entry point and leverages Couchbase server tools for all database-related tasks and queries.<\/p>\n<pre class=\"nums:false wrap:true lang:yaml decode:true\">version: \"2\"\r\nagents:\r\n\u00a0\u00a0root:\r\n\u00a0\u00a0\u00a0\u00a0model: openai\r\n\u00a0\u00a0\u00a0\u00a0description: Agent for answering questions, executing queries, and exploring data in your Couchbase database using the Docker MCP Couchbase server as a tool.\r\n\u00a0\u00a0\u00a0\u00a0instruction: |\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0You are an expert Couchbase database assistant. Your job is to answer user questions related to the Couchbase database, execute N1QL queries, summarize data, help with troubleshooting, or provide documentation-style answers as requested. Use the Couchbase MCP server to run queries and fetch schema\/data for better answers. If a user asks for query samples, data exploration, or troubleshooting, make sure to clarify the specific request if not clear, then use the tools as needed, and present results clearly and understandably.\r\n\u00a0\u00a0\u00a0\u00a0toolsets:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0- type: mcp\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ref: docker:couchbase\r\n\u00a0\u00a0\u00a0\u00a0add_date: true\r\n\u00a0\u00a0\u00a0\u00a0add_environment_info: false\r\n\r\nmodels:\r\n\u00a0\u00a0openai:\r\n\u00a0\u00a0\u00a0\u00a0provider: openai\r\n\u00a0\u00a0\u00a0\u00a0model: gpt-5-mini\r\n\u00a0\u00a0\u00a0\u00a0max_tokens: 64000\r\n<\/pre>\n<h3 style=\"font-weight: 400;\">Explicaci\u00f3n<\/h3>\n<p><b>version: &#8220;2&#8221;<\/b><\/p>\n<p>This specifies the <b>configuration schema version<\/b> for cagent. Version 2 is the current stable spec.<\/p>\n<p><b>agentes<\/b><\/p>\n<p>This block defines the agents currently available. In this example we only define one.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>ra\u00edz<\/b> &#8211; Every cagent config needs a top-level agent. It\u2019s usually the primary agent that coordinates tasks, and here it\u2019s set up as a Couchbase database assistant.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Key properties of the agent:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>model: openai<\/b><b><br \/>\n<\/b> The name of the model defined later in the models block. Agents must reference a model provider.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>descripci\u00f3n<\/b><b><br \/>\n<\/b> A human-readable explanation of what this agent does.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>instrucci\u00f3n<\/b><b><br \/>\n<\/b> Detailed system instructions that define how the agent should behave. Think of this as the \u201crole prompt.\u201d<br \/>\nIn this case, the agent is told to:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\">Execute Couchbase <b>Consultas SQL<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\">Summarize or troubleshoot results<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\">Proporcione <b>documentation-style explanations<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\">Use the Couchbase MCP server as its backend<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><b>toolsets<\/b><b><br \/>\n<\/b> This is where cagent connects the agent to external tools via the <b>Protocolo de Contexto Modelo (MCP)<\/b>.<br \/>\nHere we use:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>type: mcp<\/li>\n<li>ref: docker:couchbase<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tells cagent to use the <b>Docker MCP Couchbase server image<\/b> (mcp\/couchbase) as a tool. This allows the agent to run real database queries securely inside a container.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>add_environment_info: false<\/b><b><br \/>\n<\/b>Prevents the agent from automatically adding details about the runtime environment (like OS, working directory, or Git state). This is disabled here since database exploration doesn\u2019t need local environment context.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><b>modelos<\/b><\/p>\n<p>The models block defines what language models the agents can use.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>openai<\/b> &#8211; The model identifier, referenced by the agent\u2019s model field.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>provider: openai<\/b> &#8211; Specifies OpenAI as the LLM provider<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>model: gpt-5-mini<\/b> &#8211; The actual model to use.<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>max_tokens: 64000<\/b> &#8211; Configures the maximum output length, useful when working with long query results.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 style=\"font-weight: 400;\">Running the agent<\/h3>\n<p>You can run the agent now using the <i>cagent run<\/i> mando:<\/p>\n<pre class=\"nums:false lang:default decode:true\">cagent run couchbase_agent.yaml<\/pre>\n<p>This opens up the cagent shell where you can interact with the agent:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-17569\" style=\"border: 1px solid Gainsboro;\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-1024x627.png\" alt=\"\" width=\"900\" height=\"551\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-1024x627.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-300x184.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-768x470.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-1536x941.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-18x12.png 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2-1320x808.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image1-2.png 1999w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>In this example we are using the Couchbase MCP server, so let\u2019s say we ask a question: \u201c<em>Tell me more about the database<\/em>\".<\/p>\n<p>The agent will use the provided Couchbase MCP server tools and then select the appropriate tool for the user\u2019s given input and execute it.<br style=\"font-weight: 400;\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-17572\" style=\"border: 1px solid Gainsboro;\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-1024x602.png\" alt=\"\" width=\"900\" height=\"529\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-1024x602.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-300x176.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-768x451.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-1536x903.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-18x12.png 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2-1320x776.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image4-2.png 1999w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<h3 style=\"font-weight: 400;\">Deploying the agent<\/h3>\n<p>cagent includes built-in capabilities for sharing and publishing your agents as OCI artifacts via Docker Hub:<\/p>\n<pre class=\"nums:false lang:default decode:true\"># Push your agent to Docker Hub\r\ncagent push .\/my_agent.yaml namespace\/agent-name\r\n\r\n# Pull and run someone else's agent\r\ncagent pull creek\/pirate\r\ncagent run creek\/pirate\r\n<\/pre>\n<p>For example, we will push the Couchbase AI Agent to Docker Hub:<\/p>\n<pre class=\"nums:false lang:default decode:true\">cagent push couchbase_agent.yaml shivaylamba\/couchbase-cagent<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-17570\" style=\"border: 1px solid Gainsboro;\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-1024x567.png\" alt=\"\" width=\"900\" height=\"498\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-1024x567.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-300x166.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-768x425.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-1536x851.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-18x10.png 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2-1320x731.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/image2-2.png 1999w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>You can also find the Couchbase MCP agent example in the <a href=\"https:\/\/github.com\/docker\/cagent\/blob\/main\/examples\/couchbase_agent.yaml\" target=\"_blank\" rel=\"noopener\">cagent repository on GitHub<\/a>.<\/p>\n<h2 style=\"font-weight: 400;\">An agent-driven future<\/h2>\n<p>Docker cagent provides a fundamental shift in how we think and build about AI applications. By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.<\/p>\n<p>By using the scalability and security of Couchbase along with cagent\u2019s capability to build production ready AI Agents, one can build scalable intelligent systems.<\/p>\n<p>Whether you\u2019re creating a chatbot, analyzing data or running AI-powered workflows, this setup ensures that anything you build will be efficient, scalable, and fully under your control.<\/p>\n<p>La \u00fanica pregunta es: \u00bfqu\u00e9 va a construir?<\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/es\/developers\/community\/\" target=\"_blank\" rel=\"noopener\">Con\u00e9ctese con nuestra comunidad de desarrolladores<\/a> \u00a1y mu\u00e9stranos lo que est\u00e1s construyendo!<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>The AI landscape is rapidly transitioning from simple chatbots to AI agents that can plan, reason, and execute tasks autonomously. At the forefront is Docker cagent \u2013 a powerful, easy-to-use, multi-agent runtime that&#8217;s democratizing AI agent development for developers worldwide. [&hellip;]<\/p>","protected":false},"author":85559,"featured_media":17573,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[10123,10122,1815],"tags":[10155,1519],"ppma_author":[10069],"class_list":["post-17568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-agentic-ai-apps","category-artificial-intelligence-ai","category-best-practices-and-tutorials","tag-cagent","tag-docker"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.0 (Yoast SEO v26.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Building an AI Agent with Couchbase MCP and cagent - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/es\/building-ai-agent-couchbase-cagent\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building an AI Agent with Couchbase MCP and cagent\" \/>\n<meta property=\"og:description\" content=\"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/es\/building-ai-agent-couchbase-cagent\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-24T18:45:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Shivay Lamba, Developer Evangelist\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shivay Lamba, Developer Evangelist\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/\"},\"author\":{\"name\":\"Shivay Lamba, Developer Evangelist\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/377d9b772c90439916236da79c02c418\"},\"headline\":\"Building an AI Agent with Couchbase MCP and cagent\",\"datePublished\":\"2025-09-24T18:45:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/\"},\"wordCount\":1016,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png\",\"keywords\":[\"cagent\",\"docker\"],\"articleSection\":[\"Agentic AI Applications\",\"Artificial Intelligence (AI)\",\"Best Practices and Tutorials\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/\",\"name\":\"Building an AI Agent with Couchbase MCP and cagent - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png\",\"datePublished\":\"2025-09-24T18:45:06+00:00\",\"description\":\"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png\",\"width\":2400,\"height\":1256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building an AI Agent with Couchbase MCP and cagent\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/377d9b772c90439916236da79c02c418\",\"name\":\"Shivay Lamba, Developer Evangelist\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/7b5e7cd8007bd40de81c1ef6a9e0266f\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg\",\"caption\":\"Shivay Lamba, Developer Evangelist\"},\"url\":\"https:\/\/www.couchbase.com\/blog\/es\/author\/shivaylambda\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Building an AI Agent with Couchbase MCP and cagent - The Couchbase Blog","description":"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/es\/building-ai-agent-couchbase-cagent\/","og_locale":"es_MX","og_type":"article","og_title":"Building an AI Agent with Couchbase MCP and cagent","og_description":"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0","og_url":"https:\/\/www.couchbase.com\/blog\/es\/building-ai-agent-couchbase-cagent\/","og_site_name":"The Couchbase Blog","article_published_time":"2025-09-24T18:45:06+00:00","og_image":[{"width":2400,"height":1256,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png","type":"image\/png"}],"author":"Shivay Lamba, Developer Evangelist","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shivay Lamba, Developer Evangelist","Est. reading time":"6 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/"},"author":{"name":"Shivay Lamba, Developer Evangelist","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/377d9b772c90439916236da79c02c418"},"headline":"Building an AI Agent with Couchbase MCP and cagent","datePublished":"2025-09-24T18:45:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/"},"wordCount":1016,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png","keywords":["cagent","docker"],"articleSection":["Agentic AI Applications","Artificial Intelligence (AI)","Best Practices and Tutorials"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/","url":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/","name":"Building an AI Agent with Couchbase MCP and cagent - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png","datePublished":"2025-09-24T18:45:06+00:00","description":"By making AI Agent development as simple as writing a YAML file, cagent makes it intuitive to build AI applications.\u00a0","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/09\/blog-build-ai-agents-withcagent-couchbase.png","width":2400,"height":1256},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/building-ai-agent-couchbase-cagent\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Building an AI Agent with Couchbase MCP and cagent"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"El blog de Couchbase","description":"Couchbase, la base de datos NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"El blog de Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/377d9b772c90439916236da79c02c418","name":"Shivay Lamba, Desarrollador Evangelista","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/7b5e7cd8007bd40de81c1ef6a9e0266f","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg","caption":"Shivay Lamba, Developer Evangelist"},"url":"https:\/\/www.couchbase.com\/blog\/es\/author\/shivaylambda\/"}]}},"authors":[{"term_id":10069,"user_id":85559,"is_guest":0,"slug":"shivaylambda","display_name":"Shivay Lamba, Developer Evangelist","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/01\/shivay-lambda-couchbase.jpeg"},"author_category":"1","last_name":"Lamba - Developer Evangelist","first_name":"Shivay","job_title":"","user_url":"","description":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/17568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/users\/85559"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/comments?post=17568"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/17568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media\/17573"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media?parent=17568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/categories?post=17568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/tags?post=17568"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/ppma_author?post=17568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}