{"id":9,"date":"2026-08-17T00:21:39","date_gmt":"2026-08-17T03:21:39","guid":{"rendered":"https:\/\/telapreta.dev.br\/blog\/index.php\/mcp-server-corporativo-kiro-bedrock\/"},"modified":"2026-08-17T01:02:22","modified_gmt":"2026-08-17T04:02:22","slug":"mcp-server-corporativo-kiro-bedrock","status":"publish","type":"post","link":"https:\/\/telapreta.dev.br\/blog\/index.php\/mcp-server-corporativo-kiro-bedrock\/","title":{"rendered":"Do Zero ao Primeiro MCP Server Corporativo com Kiro + Amazon Bedrock"},"content":{"rendered":"<div class=\"telapreta-post-body\" style=\"line-height: 1.8;font-size: 1.05rem;color: #e2e8f0\">\n<p><em>Tutorial Completo: Como construir e conectar um servidor Model Context Protocol (MCP) corporativo aos modelos Claude 3.5 Sonnet hospedados na AWS via Amazon Bedrock. Por <strong>Fabio Silva<\/strong>.<\/em><\/p>\n<hr style=\"border-color: #1e293b;margin: 30px 0\" \/>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83d\udee0\ufe0f O que \u00e9 o Model Context Protocol (MCP)?<\/h2>\n<p>O <strong>Model Context Protocol (MCP)<\/strong> \u00e9 um padr\u00e3o aberto desenvolvido para conectar com seguran\u00e7a modelos de IA a fontes de dados corporativas, ferramentas locais, bancos de dados e APIs REST internas sem expor dados confidenciais \u00e0 nuvem p\u00fablica.<\/p>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83c\udfd7\ufe0f Arquitetura da Solu\u00e7\u00e3o Corporativa<\/h2>\n<ul style=\"line-height: 1.8\">\n<li><strong>Kiro CLI \/ Agent Framework:<\/strong> Atua como cliente MCP, disparando requisi\u00e7\u00f5es estruturadas.<\/li>\n<li><strong>Custom MCP Server (Python FastMCP):<\/strong> Exp\u00f5e ferramentas corporativas (ex: consulta a banco de dados MySQL\/Postgres ou logs da empresa).<\/li>\n<li><strong>Amazon Bedrock API:<\/strong> Fornece infer\u00eancia de LLMs de alto desempenho (Claude 3.5 Sonnet \/ Haiku) dentro de uma VPC privada na AWS com criptografia KMS.<\/li>\n<\/ul>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83d\udcbb C\u00f3digo do Servidor MCP em Python (mcp_server.py)<\/h2>\n<pre style=\"background: #0f172a;padding: 15px;border-radius: 8px;border: 1px solid #1e293b;color: #10b981;font-family: monospace\">\nfrom mcp.server.fastmcp import FastMCP\nimport boto3\nimport json\n\nmcp = FastMCP(\"Corporate-Bedrock-Server\")\nbedrock = boto3.client('bedrock-runtime', region_name='us-east-1')\n\n@mcp.tool()\ndef query_aws_resource_status(resource_id: str) -&gt; str:\n    # L\u00f3gica de integra\u00e7\u00e3o com AWS SDK \/ Bedrock\n    return f\"Recurso {resource_id} ativo e operando com 99.99% de sa\u00fade.\"\n\nif __name__ == \"__main__\":\n    mcp.run()\n<\/pre>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83d\udd12 Governan\u00e7a e Seguran\u00e7a em Ambiente Corporativo<\/h2>\n<ul style=\"line-height: 1.8\">\n<li><strong>Credenciais IAM com Princ\u00edpio do Menor Privil\u00e9gio:<\/strong> Utilize <code>aws sts assume-role<\/code> e pap\u00e9is tempor\u00e1rios.<\/li>\n<li><strong>VPC Endpoints (AWS PrivateLink):<\/strong> Garanta que o tr\u00e1fego entre o MCP Server local e o Bedrock n\u00e3o passe pela internet p\u00fablica.<\/li>\n<li><strong>Logging e Audit Trail:<\/strong> Registre todas as chamadas de ferramentas no AWS CloudTrail e CloudWatch Logs.<\/li>\n<\/ul>\n<hr style=\"border-color: #1e293b;margin: 35px 0\" \/>\n<p style=\"color: #94a3b8;font-size: 0.95rem\"><em>Artigo originalmente publicado por <strong>Fabio Silva<\/strong> \u2014 Arquiteto de Solu\u00e7\u00f5es em Cloud, DevOps e IA Generativa.<\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial Completo: Como construir e conectar um servidor Model Context Protocol (MCP) corporativo aos modelos Claude 3.5 Sonnet hospedados na AWS via Amazon Bedrock. Por Fabio Silva. \ud83d\udee0\ufe0f O que \u00e9 o Model Context Protocol (MCP)? O Model Context Protocol (MCP) \u00e9 um padr\u00e3o aberto desenvolvido para conectar com seguran\u00e7a modelos de IA a fontes &#8230; <a title=\"Do Zero ao Primeiro MCP Server Corporativo com Kiro + Amazon Bedrock\" class=\"read-more\" href=\"https:\/\/telapreta.dev.br\/blog\/index.php\/mcp-server-corporativo-kiro-bedrock\/\" aria-label=\"Read more about Do Zero ao Primeiro MCP Server Corporativo com Kiro + Amazon Bedrock\">Ler mais<\/a><\/p>\n","protected":false},"author":1,"featured_media":31,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops-cloud","category-ia-agentes"],"_links":{"self":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":4,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/198"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/media\/31"}],"wp:attachment":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}