{"id":277,"date":"2025-01-31T08:40:15","date_gmt":"2025-01-31T00:40:15","guid":{"rendered":"http:\/\/52.76.12.94\/?p=277"},"modified":"2026-06-04T11:29:53","modified_gmt":"2026-06-04T03:29:53","slug":"%e5%9f%ba%e4%ba%8e-agentic-ai-amazon-redshift-mcp-server-%e5%ae%9e%e7%8e%b0-agentic-data-analysis","status":"publish","type":"post","link":"https:\/\/flycloud.io\/en\/2025\/01\/31\/%e5%9f%ba%e4%ba%8e-agentic-ai-amazon-redshift-mcp-server-%e5%ae%9e%e7%8e%b0-agentic-data-analysis\/","title":{"rendered":"\u57fa\u4e8e Agentic AI + Amazon Redshift MCP Server \u5b9e\u73b0 Agentic Data Analysis"},"content":{"rendered":"<h2 class=\"wp-block-heading\"><strong>1. \u524d\u8a00<\/strong><\/h2>\n\n\n\n<p>\u4e00\u822c\u800c\u8a00\uff0cAgentic AI \u662f\u6307\u80fd\u591f\u8fdb\u884c\u63a8\u7406\u548c\u89c4\u5212\uff0c\u81ea\u4e3b\u51b3\u5b9a\u505a\u4ec0\u4e48\u3001\u4f55\u65f6\u505a\u6765\u89e3\u51b3\u590d\u6742\u7684\u591a\u6b65\u9aa4\u95ee\u9898\u7684\u8f6f\u4ef6\u7cfb\u7edf\u3002\u800c Agentic Data Analysis \u5219\u662f Agentic AI \u5728\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u89c1\u89e3\u751f\u6210\u65b9\u9762\u7684\u5e94\u7528\u3002Model Context Protocol\uff08MCP\uff09\u901a\u8fc7\u63d0\u4f9b\u4e00\u4e2a\u6807\u51c6\u5316\u7684\u534f\u8bae\uff0c\u5c06 AI \u6a21\u578b\u7684\u51b3\u7b56\u903b\u8f91\u548c\u5916\u90e8\u8d44\u6e90\u89e3\u85d5\uff0c\u89e3\u51b3\u5927\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u3001\u6570\u636e\u6e90\u7684\u96c6\u6210\u96be\u9898\u3002\u5728\u6570\u636e\u5206\u6790\u9886\u57df\uff0cMCP \u4e0e Agentic AI \u7684\u7ed3\u5408\u6b63\u6210\u4e3a\u4e00\u79cd\u8d8b\u52bf\uff0c\u6f5c\u529b\u5de8\u5927\uff0c\u4e24\u8005\u7684\u7ed3\u5408\u4f7f\u5f97 Agentic AI \u80fd\u591f\u65e0\u7f1d\u5730\u8bbf\u95ee\u548c\u64cd\u4f5c\u5404\u79cd\u6570\u636e\u6e90\uff0c\u5982 Amazon Redshift\uff0c\u663e\u8457\u63d0\u5347\u6570\u636e\u5206\u6790\u7684\u6548\u7387\u548c\u667a\u80fd\u6c34\u5e73\u3002\u540c\u65f6\uff0cAgentic AI \u501f\u52a9\u9ad8\u6027\u80fd\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\uff0c\u5982 Amazon Bedrock \u7684 Claude 3.7 Sonnet\uff0c\u5904\u7406\u590d\u6742\u7684\u5206\u6790\u4efb\u52a1\uff0c\u5e76\u63d0\u4f9b\u66f4\u52a0\u51c6\u786e\u7684\u6d1e\u5bdf\u3002\u8fd9\u79cd\u7ed3\u5408\u4e0d\u4ec5\u7b80\u5316\u4e86\u6570\u636e\u8bbf\u95ee\u548c\u5206\u6790\u6d41\u7a0b\uff0c\u8fd8\u4e3a\u6784\u5efa\u66f4\u81ea\u6cbb\u3001\u66f4\u667a\u80fd\u7684\u6570\u636e\u5206\u6790\u7cfb\u7edf\u5960\u5b9a\u4e86\u57fa\u7840\u3002\u672c\u6587\u5c06\u63a2\u8ba8\u548c\u9a8c\u8bc1 Agentic AI \u4e0e Amazon Redshift MCP Server \u7684\u7ed3\u5408\u5982\u4f55\u5b9e\u73b0 Agentic Data Analysis\uff0c\u5e76\u5c55\u671b\u8fd9\u4e00\u6280\u672f\u5728\u672a\u6765\u6570\u636e\u5206\u6790\u9886\u57df\u7684\u6f5c\u529b\u548c\u53d1\u5c55\u65b9\u5411\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udce2\u9650\u65f6\u63d2\u64ad\uff1a\u65e0\u9700\u7ba1\u7406\u57fa\u7840\u8bbe\u65bd\uff0c\u5229\u7528\u4e9a\u9a6c\u900a\u6280\u672f\u4e0e\u751f\u6001\uff0c\u5feb\u901f\u96c6\u6210\u4e0e\u90e8\u7f72\u751f\u6210\u5f0f AI \u6a21\u578b\u80fd\u529b\u3002<\/p>\n\n\n\n<p>\u2728 \u7cbe\u5fc3\u8bbe\u8ba1\uff0c\u65e8\u5728\u5f15\u5bfc\u60a8\u6df1\u5165\u63a2\u7d22 Amazon Bedrock \u7684\u6a21\u578b\u9009\u62e9\u4e0e\u8c03\u7528\u3001\u6a21\u578b\u81ea\u52a8\u5316\u8bc4\u4f30\u4ee5\u53ca\u5b89\u5168\u56f4\u680f(Guardrail)\u7b49\u91cd\u8981\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u23e9\u5feb\u5feb\u70b9\u51fb\u8fdb\u5165\u300a<a href=\"https:\/\/xie.infoq.cn\/link?target=https%3A%2F%2Fdev.amazoncloud.cn%2Fexperience%2Fcloudlab%3Fid%3D6695e4c5e1432f239fae485f%26visitfrom%3D3P_InfoQhead_0606%26sc_medium%3Downed%26sc_campaign%3Dcloudlab%26sc_channel%3D3P_InfoQhead_0606\">\u591a\u6a21\u4e00\u7ad9\u901a \u2014\u2014 Amazon Bedrock \u4e0a\u7684\u57fa\u7840\u6a21\u578b\u521d\u4f53\u9a8c<\/a>\u300b\u5b9e\u9a8c\u6784\u5efa\u65e0\u9650, \u63a2\u7d22\u542f\u7a0b\uff01<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u539f\u7406<\/strong><\/h2>\n\n\n\n<p>Agentic AI \u5177\u6709\u81ea\u4e3b\u6027\u3001\u63a8\u7406\u548c\u89c4\u5212\u3001\u9762\u5411\u76ee\u6807\u7684\u884c\u4e3a\u3001\u591a\u6b65\u9aa4\u548c\u51b3\u7b56\u89e3\u51b3\u590d\u6742\u95ee\u9898\u4ee5\u53ca\u96c6\u6210\u548c\u4f7f\u7528\u5de5\u5177\u548c\u6570\u636e\u7b49\u7279\u6027\u3002\u5176\u57fa\u672c\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/bf\/bf4cfe6afdf550a18a1875be07f2a516.png\" alt=\"\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Agentic AI \u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u9700\u6c42\u540e\uff0c\u5229\u7528 LLM \u8fdb\u884c\u5206\u6790\u548c\u89c4\u5212\uff0c\u751f\u6210\u5177\u4f53\u7684\u9700\u8981\u6267\u884c\u7684\u4efb\u52a1\u3002<\/li>\n\n\n\n<li>\u6839\u636e\u4efb\u52a1\u8981\u6c42\uff0c\u9009\u62e9\u53ef\u7528\u7684\u5de5\u5177\u3002\u4e00\u822c\u800c\u8a00\uff0cAgentic AI \u81ea\u8eab\u90fd\u4f1a\u5185\u7f6e\u4e00\u4e9b\u57fa\u7840\u7684\u5de5\u5177\u96c6\uff0c\u7528\u4ee5\u5b8c\u6210\u57fa\u672c\u7684\u4efb\u52a1\u3002\u5982 Code Agentic AI \u4e00\u822c\u4f1a\u81ea\u5e26\u521b\u5efa\u6587\u4ef6\u3001\u8bfb\u53d6\u6587\u4ef6\u3001\u4fee\u6539\u6587\u4ef6\u7b49\u5de5\u5177\u96c6\u3002<\/li>\n\n\n\n<li>\u786e\u5b9a\u4f7f\u7528\u54ea\u4e2a\u5de5\u5177\u6765\u5b8c\u6210\u4efb\u52a1\u540e\uff0cAgentic AI \u5c06\u6267\u884c\u5de5\u5177\u8c03\u7528\u3002\u6b64\u8fc7\u7a0b\u4e00\u822c\u4f1a\u5f15\u5165\u4eba\u5de5\u53c2\u4e0e\uff0c\u7531\u4eba\u6765\u786e\u5b9a\u662f\u5426\u6267\u884c\u8be5\u5de5\u5177\uff0c\u6216\u8005\u662f\u5426\u9700\u8981 Agentic AI \u5bf9\u5de5\u5177\u7684\u53c2\u6570\u8fdb\u884c\u5fae\u8c03\u3002<\/li>\n\n\n\n<li>\u6267\u884c\u5de5\u5177\u8c03\u7528\u540e\uff0cAgentic AI \u4e00\u65b9\u9762\u5c06\u5de5\u5177\u6267\u884c\u7ed3\u679c\u53cd\u9988\u7ed9\u7528\u6237\uff0c\u4e00\u65b9\u9762\u5bf9\u5de5\u5177\u6267\u884c\u7ed3\u679c\u8fdb\u884c\u5206\u6790\uff0c\u786e\u5b9a\u662f\u5426\u5df2\u7ecf\u5b8c\u6210\u6574\u4e2a\u9700\u6c42\uff0c\u8fd8\u662f\u9700\u8981\u6839\u636e\u6267\u884c\u7ed3\u679c\u6765\u8fdb\u4e00\u6b65\u8fdb\u884c\u5206\u6790\u3001\u8bc4\u4f30\u548c\u89c4\u5212\uff0c\u76f4\u5230\u5b9e\u73b0\u6574\u4e2a\u9700\u6c42\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u7531\u4e8e\u73b0\u5b9e\u4e16\u754c\u7684\u590d\u6742\u6027\uff0cAgentic AI \u4e0d\u53ef\u80fd\u81ea\u5e26\u6240\u6709\u7684\u5de5\u5177\uff0c\u56e0\u6b64\u9700\u8981\u4e00\u79cd\u53ef\u63d2\u62d4\u7684\u65b9\u5f0f\u63a5\u5165\u5916\u90e8\u7684\u5de5\u5177\u6765\u6269\u5145 Agent \u7684\u5de5\u5177\u96c6\u3002MCP \u6b63\u662f\u5728\u8fd9\u79cd\u9700\u6c42\u80cc\u666f\u4e0b\u4ea7\u751f\u7684\u3002\u5b83\u63d0\u4f9b\u6807\u51c6\u5316\u7684\u63a5\u53e3\uff0c\u4e3a Agent \u5e94\u7528\u548c\u5916\u90e8\u7684\u6570\u636e\u6e90\u548c\u5de5\u5177\u63d0\u4f9b\u65e0\u7f1d\u7684\u96c6\u6210\u80fd\u529b\u3002MCP \u4f5c\u4e3a Agentic AI \u9886\u57df\u7684\u201cUSB-C\u201d \u63a5\u53e3\uff0c\u6b63\u5728\u91cd\u6784\u667a\u80fd\u7cfb\u7edf\u4e0e\u6570\u5b57\u4e16\u754c\u7684\u8fde\u63a5\u65b9\u5f0f\uff0c\u4e3a Agentic AI \u7684\u53d1\u5c55\u5960\u5b9a\u57fa\u7840\u3002MCP \u7684\u51fa\u73b0\uff0c\u4f7f\u5f97\u5404\u79cd\u4e0d\u540c\u7684 Agentic AI \u53ef\u4ee5\u4ee5\u7edf\u4e00\u7684\u65b9\u5f0f\u63a5\u5165\u5404\u79cd\u4e0d\u540c\u7684\u5de5\u5177\uff0c\u6269\u5145 Agent \u7684\u80fd\u529b\u8303\u56f4\uff0c\u5c06\u5e95\u5c42\u6a21\u578b\u7684\u51b3\u7b56\u3001\u89c4\u5212\u903b\u8f91\u4e0e\u5916\u90e8\u8d44\u6e90\u89e3\u85d5\uff0c\u5f62\u6210\u201c\u667a\u80fd\u5927\u8111 + \u6280\u80fd\u96c6\u201d\u7684\u534f\u540c\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\u6709\u4e86 MCP \u8fd9\u6837\u7684\u534f\u8bae\u540e, \u6211\u4eec\u53ef\u4ee5\u5728 Agentic AI \u4e2d\u5916\u63a5\u5404\u79cd\u6570\u636e\u5206\u6790\u4ea7\u54c1\u7684 MCP Server\uff0c\u901a\u8fc7\u8fd9\u4e9b MCP Server \u63d0\u4f9b\u7684\u5de5\u5177\u3001\u8d44\u6e90\uff0c\u8ba9 Agentic AI \u81ea\u4e3b\u8fdb\u884c\u6570\u636e\u5206\u6790\u3001\u6570\u636e Pipeline \u548c\u5e94\u7528\u7684\u5f00\u53d1\u3002<\/p>\n\n\n\n<p><strong>\u4ec0\u4e48\u662f MCP<\/strong><\/p>\n\n\n\n<p>MCP \u662f\u4e00\u4e2a\u5f00\u653e\u534f\u8bae\uff0c\u5176\u6807\u51c6\u5316\u4e86 AI \u6a21\u578b\u8fde\u63a5\u5230\u5404\u79cd\u4e0d\u540c\u6570\u636e\u6e90\u548c\u5de5\u5177\u7684\u65b9\u5f0f\u3002MCP \u7684\u6838\u5fc3\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/99\/999ffff4196b51db0ae98c09995cf4fa.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>MCP \u91c7\u7528 Client-Server \u67b6\u6784\u6a21\u5f0f<\/p>\n\n\n\n<p>\u7ec4\u6210<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hosts\uff1a\u4ee3\u8868 LLM \u5e94\u7528\uff08\u5982 Cline \/ Claude Desktop \/ Cursor \u7b49\uff09\uff0c\u7531\u5e94\u7528\u53d1\u8d77\u8fde\u63a5\u3002<\/li>\n\n\n\n<li>Clients\uff1a\u5728 Host \u5e94\u7528\u91cc\u9762\u8d1f\u8d23\u4e0e MCP Server \u8fdb\u884c\u8fde\u63a5\uff0c\u4e0e MCP Server \u662f 1:1 \u5173\u7cfb\u3002<\/li>\n\n\n\n<li>Servers\uff1a\u4e3a Clients \u63d0\u4f9b Resources\u3001Prompts \u548c Tools \u7b49\u7279\u5b9a\u529f\u80fd\u3002\u6bcf\u4e2a Server \u4e13\u6ce8\u4e8e\u7279\u5b9a\u7684\u529f\u80fd\u548c\u4efb\u52a1\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f20\u8f93<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 JSON- RPC 2.0 \u4f5c\u4e3a\u6d88\u606f\u683c\u5f0f<\/li>\n\n\n\n<li>\u5185\u7f6e STDIO \u548c HTTP + SSE\uff08MCP Specification 2025-03-26 \u7248\u672c\u4f7f\u7528 Streamable HTTP \u66ff\u4ee3\u4e86 HTTP+SSE \u4f20\u8f93\u65b9\u5f0f\uff09\u4e24\u79cd\u65b9\u5f0f\u4f5c\u4e3a\u4f20\u8f93\u7c7b\u578b\u5b9e\u73b0<\/li>\n<\/ul>\n\n\n\n<p><strong>Amazon Redshift MCP Server<\/strong><\/p>\n\n\n\n<p>MCP \u63d0\u4f9b\u4e86\u4e0d\u540c\u7f16\u7a0b\u8bed\u8a00\uff08Python\/TypeScript\/Java\/Kotlin\/C#\uff09\u7684\u534f\u8bae\u53c2\u8003\u5b9e\u73b0\uff0c\u501f\u52a9 MCP Python SDK\uff0c\u7b14\u8005\u5f00\u53d1\u4e86\u4e00\u4e2a <a href=\"https:\/\/xie.infoq.cn\/link?target=https%3A%2F%2Fgithub.com%2FMoonlight-CL%2Fredshift-mcp-server\">Amazon Redshift MCP Server<\/a>\uff0c\u8be5 MCP Server \u63d0\u4f9b\u4ee5\u4e0b Features\uff1a<\/p>\n\n\n\n<p>Resources<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>rs:\/\/\/schemas<\/code> \u2013 \u5217\u51fa Redshift \u6570\u636e\u5e93\u4e0b\u6240\u6709\u7684 schemas<\/li>\n\n\n\n<li><code>rs:\/\/\/{schema}\/tables<\/code> \u2013 \u5217\u51fa\u67d0\u4e2a schema \u4e0b\u6240\u6709\u7684\u8868<\/li>\n\n\n\n<li><code>rs:\/\/\/{schema}\/{table}\/ddl<\/code> \u2013 \u83b7\u5f97\u67d0\u4e2a\u8868\u7684 DDL \u4fe1\u606f<\/li>\n\n\n\n<li><code>rs:\/\/\/{schema}\/{table}\/statistic<\/code> \u2013 \u83b7\u5f97\u67d0\u4e2a\u8868\u7684\u7edf\u8ba1\u4fe1\u606f<\/li>\n<\/ul>\n\n\n\n<p>Tools<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>execute_sql<\/code> \u2013 \u5728 Redshift \u96c6\u7fa4\u4e2d\u6267\u884c SQL<\/li>\n\n\n\n<li><code>analyze_table<\/code> \u2013 \u5206\u6790\u548c\u66f4\u65b0 Redshift \u8868\u7edf\u8ba1\u4fe1\u606f<\/li>\n\n\n\n<li><code>get_execution_plan<\/code> \u2013 \u83b7\u53d6 Redshift SQL \u6267\u884c\u8ba1\u5212<\/li>\n<\/ul>\n\n\n\n<p>Cline \u662f\u4e00\u4e2a\u81ea\u4e3b\u7684\u4ee3\u7801 Agentic AI\uff0c\u4e0b\u9762\u6211\u4eec\u4f7f\u7528 Cline \u7ed3\u5408\u5f00\u53d1\u7684 Amazon Redshift MCP Server \u6765\u63a2\u7d22\u57fa\u4e8e Agentic AI \u548c Amazon Redshift \u8fdb\u884c\u7684\u81ea\u4e3b\u6570\u636e\u5206\u6790\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u5b9e\u8df5<\/strong><\/h2>\n\n\n\n<p><strong>\u524d\u63d0<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b89\u88c5 VS Code\uff0c\u5e76\u5b89\u88c5\u597d Cline Extention<\/li>\n\n\n\n<li>\u5f00\u901a Amazon Bedrock Claude 3.7 sonnet \u6a21\u578b\u8bbf\u95ee\u6743\u9650<\/li>\n\n\n\n<li>\u521b\u5efa Amazon Redshift \u96c6\u7fa4\uff08Serverless \u6216\u8005 Provisioned cluster \u5747\u53ef\uff09<\/li>\n\n\n\n<li>\u672c\u5730\u5b89\u88c5\u597d <a href=\"https:\/\/xie.infoq.cn\/link?target=https%3A%2F%2Fdocs.astral.sh%2Fuv%2F\">uv<\/a> python \u5305\u7ba1\u7406\u5de5\u5177<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b89\u88c5 Redshift MCP Server<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code># clone redshift-mcp-server repo<\/code><code>git clone https:\/\/github.com\/Moonlight-CL\/redshift-mcp-server<\/code><code>cd redshift-mcp-server<\/code><code># sync the project's dependencies<\/code><code>uv sync<\/code><\/pre>\n\n\n\n<p>\u5728 Cline \u7684 MCP Server \u201cInstall\u201d \u6807\u7b7e\u9875\uff0c\u70b9\u51fb \u201cConfigure MCP Servers\u201d\uff0c\u6dfb\u52a0 Redshift MCP Server\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>{<\/code><code>  \"mcpServers\": {<\/code><code>    \"redshift-mcp-server\": {<\/code><code>      \"timeout\": 60,<\/code><code>      \"command\": \"uv\",<\/code><code>      \"args\": [<\/code><code>        \"--directory\",<\/code><code>        \"\/path\/of\/redshift-mcp-server\/src\/redshift_mcp_server\",<\/code><code>        \"run\",<\/code><code>        \"server.py\"<\/code><code>      ],<\/code><code>      \"env\": {<\/code><code>        \"RS_HOST\": \"your.redshift.cluster.host\",<\/code><code>        \"RS_DATABASE\": \"default_is_dev\",<\/code><code>        \"RS_SCHEMA\": \"default_is_public\",<\/code><code>        \"RS_USER\": \"your_redshift_user\",<\/code><code>        \"RS_PASSWORD\": \"your_redshift_password\"<\/code><code>      },<\/code><code>      \"transportType\": \"stdio\"<\/code><code>  }<\/code><code>}<\/code><\/pre>\n\n\n\n<p>\u5728 Cline \u4e2d\u914d\u7f6e\u597d\u5f00\u53d1\u7684 Redshift MCP Server \u4e4b\u540e\uff0c\u5728 Cline \u7684\u5df2\u5b89\u88c5 MCP Tab \u9875\u53ef\u4ee5\u770b\u5230\u8be5 MCP Server \u63d0\u4f9b\u7684 Tools \u548c Resources\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/07\/07d366ca4c5bb488078963edf09ab488.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>\u914d\u7f6e Cline \u4f7f\u7528 Amazon Bedrock Claude 3.7 Sonnet \u6a21\u578b<\/strong><\/p>\n\n\n\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u9009\u62e9 \u2018Amazon Bedrock\u2019 \u4f5c\u4e3a API Provider\uff0c\u5e76\u52fe\u9009 \u2018Use cross-region inference\u2019 \u548c \u2018Use prompt caching\u2019\u3002\u4f7f\u7528 \u2018cross-region inference\u2019 \u53ef\u6700\u5927\u5316\u8d44\u6e90\u548c\u6a21\u578b\u7684\u53ef\u7528\u6027\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\uff0c\u800c\u4f7f\u7528 \u2018prompt caching\u2019 \u8fd9\u4e2a\u4f18\u5316\u7279\u6027\u53ef\u4ee5\u964d\u4f4e\u63a8\u7406\u54cd\u5e94\u5ef6\u8fdf\u4ee5\u53ca\u6a21\u578b\u8f93\u5165 Token \u7684\u8d39\u7528\u3002\u6700\u540e\u5728 \u2018Model\u2019 \u9009\u9879\u4e2d\uff0c\u9009\u62e9 \u2018anthropic.claude-3-7-sonnet-20250219-v1:0\u2019\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/11\/11c54ce559725efc8af0829a62ccefcd.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>\u9a8c\u8bc1\u4e00\uff1aAgentic AI + Redshift MCP Server \u8fdb\u884c\u5355\u8868\u6570\u636e\u5206\u6790<\/strong><\/p>\n\n\n\n<p>\u901a\u8fc7 Redshift MCP Server \u63d0\u4f9b\u7684\u5bf9\u8868\u7ed3\u6784\u7684\u83b7\u53d6\u80fd\u529b\u4ee5\u53ca\u6267\u884c SQL \u80fd\u529b\uff0c\u7ed3\u5408 Agentic AI \u5bf9\u9700\u6c42\u7684\u7406\u89e3\u4ee5\u53ca\u4efb\u52a1\u6267\u884c\u80fd\u529b\uff0c\u5728\u4e0d\u63d0\u4f9b\u4efb\u4f55\u8868\u7ed3\u6784\u4fe1\u606f\u7684\u524d\u63d0\u4e0b\uff0c\u9a8c\u8bc1\u4e8c\u8005\u7ed3\u5408\u6765\u5bf9\u5355\u8868\u8fdb\u884c\u6570\u636e\u5206\u6790\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<p>\u5206\u6790\u9700\u6c42\uff1aRedshift \u7684 public schema \u4e2d\u6709\u4e00\u5f20 \u2018my_sales\u2019 \u8868\uff0c\u5217\u51fa 2008 \u5e74 5 \u6708\u4efd\u7684 Top5 \u9500\u552e\u5458\uff0c\u5e76\u7528\u6f02\u4eae\u7684 Html \u9875\u9762\u5c55\u793a Top 5 \u7684\u9500\u552e\u6570\u636e\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>There is a redshift table named \u2018my_sales\u2019 in public schema of dev database, please list top 5 sellers in May 2008 by analyzing the table\u2019s schema, and then show the top 5 sellers data in a beautiful html page<\/p>\n<\/blockquote>\n\n\n\n<p>\u5c06\u9700\u6c42\u8f93\u5165 Cline \u540e\uff0cCline \u8fdb\u884c\u9700\u6c42\u7406\u89e3\u5e76\u8fdb\u884c\u4efb\u52a1\u89c4\uff0c\u5982\u4e0b\u4e24\u56fe\u6240\u793a\uff0cCline \u5b8c\u6574\u5730\u7406\u89e3\u4e86\u7528\u6237\u9700\u6c42\uff0c\u5e76\u5e0c\u671b\u8bbf\u95ee <code>redshift-mcp-server MCP server<\/code> \u7684 <code>rs:\/\/\/public\/my_sales\/ddl<\/code> \u8d44\u6e90\u3002\u540c\u610f\u8fdb\u884c\u8bbf\u95ee\u540e\uff0cCline \u5c06\u4e0e MCP Server \u8fdb\u884c\u4ea4\u4e92\uff0c\u8fdb\u884c MCP Resource \u7684\u83b7\u53d6\uff0c\u8c03\u7528\u6210\u529f\u540e\uff0cRedshift MCP Server \u8fd4\u56de\u8be5\u8868\u7684 DDL \u8bed\u53e5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/9f\/9fc08de88f3470e471cf05aa75d4792a.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u63a5\u6536\u5230 MCP Server \u7684\u54cd\u5e94\u540e\uff0cCline \u5bf9 \u2018my_sales\u2019 \u8868\u7ed3\u6784\u8fdb\u884c\u5206\u6790\uff0c\u8ba4\u4e3a \u2018saletime\u2019 \u8fd9\u4e2a\u5b57\u6bb5\u5c06\u4f1a\u88ab\u7528\u6765\u8fdb\u884c\u8fc7\u6ee4\u4ee5\u83b7\u5f97 2008 \u5e74 5 \u6708\u7684\u6570\u636e\uff0c\u5e76\u9700\u8981\u53d1\u8d77\u6837\u4f8b\u6570\u636e\u67e5\u8be2\u4ee5\u68c0\u9a8c\u8868\u4e2d\u662f\u5426\u6709\u6570\u636e\u5e76\u7406\u89e3\u65e5\u671f\u683c\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/9f\/9fbb454c79e4180f9c02bd3216975e29.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u901a\u8fc7 MCP Server \u6267\u884c\u6837\u4f8b SQL \u7684\u67e5\u8be2\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/ca\/ca357e56ef9a3df1bd266d57a9f04af1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u83b7\u53d6\u5230\u6837\u4f8b\u6570\u636e\u540e\uff0cCline \u786e\u8ba4\u4e86\u2019saletime\u2019 \u5b57\u6bb5\u7684\u6570\u636e\u683c\u5f0f\uff0c\u5e76\u6839\u636e\u9700\u6c42\u4ee5\u53ca\u83b7\u5f97\u7684\u8868\u7ed3\u6784\u4fe1\u606f\uff0c\u751f\u6210\u4e86\u83b7\u53d6 2008 \u5e74 5 \u6708 Top 5 Seller \u7684\u9500\u552e\u6570\u636e SQL\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>SELECT sellerid, SUM(pricepaid) as total_sales, COUNT(*) as num_transactions <\/code><code>FROM public.my_sales <\/code><code>WHERE saletime &gt;= '2008-05-01' AND saletime &lt; '2008-06-01' <\/code><code>GROUP BY sellerid ORDER BY total_sales DESC LIMIT 5<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/60\/60bac95f8a9ab08af316de52d53503e6.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u83b7\u5f97 Top 5 \u7684\u9500\u552e\u6570\u636e\u540e\uff0cCline \u53c8\u57fa\u4e8e\u83b7\u53d6\u5230\u7684 Top 5 \u9500\u552e\u5458 ID \u83b7\u53d6\u5230\u5404\u81ea\u5728 2008 \u5e74 5 \u6708\u4efd\u7684\u5177\u4f53\u9500\u552e\u6570\u636e\uff0c\u5e76\u57fa\u4e8e\u8fd9\u4e9b\u9500\u552e\u6570\u636e\u751f\u6210\u4e86\u4e00\u4e2a\u975e\u5e38\u6f02\u4eae\u800c\u5b8c\u5907\u7684 HTML \u5c55\u793a\u9875\u9762\uff0c\u65e2\u6709\u67f1\u72b6\u56fe\uff0c\u4e5f\u6709\u6bcf\u4e2a\u9500\u552e\u5458\u7684\u660e\u7ec6\u9500\u552e\u6570\u636e\uff0c\u975e\u5e38\u7684\u8be6\u5c3d\u3002 Cline \u4efb\u52a1\u8bb0\u5f55\u53ca\u751f\u6210\u7ed3\u679c<a href=\"https:\/\/xie.infoq.cn\/link?target=https%3A%2F%2Fgithub.com%2FMoonlight-CL%2Fagentic-data-analysis%2Ftree%2Fmain%2Fcline-mcp-redshift-sales\">\u89c1\u6b64<\/a>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/8c\/8ca867d4b00e25b4877af4ec7015c038.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>\u9a8c\u8bc1\u4e8c\uff1aAgentic AI + Redshift MCP Server \u5b9e\u73b0\u70b9\u51fb\u6d41\u6570\u636e\u5206\u6790<\/strong><\/p>\n\n\n\n<p>\u672c\u5b9e\u9a8c\u901a\u8fc7\u70b9\u51fb\u6d41\u6570\u636e\u5206\u6790\u7684\u573a\u666f\uff0c\u9a8c\u8bc1 Cline \u7ed3\u5408 Redshift MCP Server \u8fdb\u884c\u591a\u6b65\u9aa4\u4efb\u52a1\u5b9e\u73b0\u57fa\u4e8e Redshift \u7684\u5168\u6d41\u7a0b\u6570\u636e\u5206\u6790\u7684\u80fd\u529b\u3002\u539f\u59cb\u70b9\u51fb\u6d41\u6570\u636e\u5b58\u50a8\u5728 Amazon MSK \u4e2d\uff0c\u901a\u8fc7\u7ed9\u51fa\u70b9\u51fb\u6d41\u6570\u636e\u7684 Schema \u4ee5\u53ca\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u671f\u671b Cline \u7ed3\u5408 Redshift MCP Server \u53ef\u4ee5\u5b9e\u73b0\u70b9\u51fb\u6d41\u6570\u636e\u6d41\u5f0f\u6444\u53d6\u5230 Redshift\uff0c\u5e76\u5bf9\u539f\u59cb\u6570\u636e\u6309\u4e8b\u4ef6\u7c7b\u578b\u8fdb\u884c\u62bd\u53d6\uff0c\u5f62\u6210\u4e0d\u540c\u7684\u4e8b\u4ef6\u8868\uff0c\u57fa\u4e8e\u8fd9\u4e9b\u4e8b\u4ef6\u8868\u6765\u8fdb\u884c\u5177\u4f53\u7684\u6307\u6807\u5206\u6790\uff0c\u5b9e\u73b0\u7aef\u5230\u7aef\u7684\u6570\u636e\u5206\u6790\u3002<\/p>\n\n\n\n<p>\u573a\u666f\u4e0e\u9700\u6c42\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\u6211\u60f3\u4f7f\u7528Amazon \u7684 Redshift\u6765\u6784\u5efa\u7684\u70b9\u51fb\u6d41\u6570\u636e\u5206\u6790\u5e73\u53f0. <\/code><code>## \u70b9\u51fb\u6d41\u6570\u636e\u5b58\u50a8 <\/code><code>\u70b9\u51fb\u6d41\u6570\u636e\u5df2\u7ecf\u5b58\u50a8\u5728Amazon MSK \u4e2d.\u5176\u4e2d: <\/code><code>brokers: broker_urls <\/code><code>topic: event_topic <\/code><code>## \u70b9\u51fb\u6d41\u6570\u636e\u683c\u5f0f <\/code><code>\u70b9\u51fb\u6d41\u6570\u636e\u683c\u5f0f\u4e3aJSON, \u5177\u4f53\u683c\u5f0f\u5982\u4e0b: <\/code><code>user_id: bigint, \u7528\u6237\u552f\u4e00ID<\/code><code>account_id: varchar(32), \u8d26\u6237ID <\/code><code>distinct_id: varchar(32), \u8bbf\u5ba2ID <\/code><code>event_name: varchar(20), \u4e8b\u4ef6\u540d\u79f0, \u76ee\u524d\u6709\u8fd9\u51e0\u79cd: login, logout, charge, participate_activity, start_fight <\/code><code>event_time: varchar(14), \u65e5\u671f\u683c\u5f0f\u4e3a: yyyyMMddHHmmss, UTC+0 \u65f6\u95f4 <\/code><code>properties: super, \u6bcf\u79cd\u4e8b\u4ef6\u6709\u4e0d\u540c\u7684\u5c5e\u6027json \u5bf9\u8c61, \u5176\u4e2d: <\/code><code>### login, logout \u4e8b\u4ef6<\/code><code>properties \u5c5e\u6027\u6709<\/code><code>app_version: varchar(20), app\u7684\u7248\u672c\u53f7 os: varchar(64), \u64cd\u4f5c\u7cfb\u7edf\u7248\u672c, \u4ee5 os\/version \u683c\u5f0f\u8fd4\u56de device_model: varchar(64), \u8bbe\u5907\u578b\u53f7 ip:varchar(64), IPV4\u4fe1\u606f <\/code><code>### charge \u4e8b\u4ef6<\/code><code>properties \u5c5e\u6027\u6709: <\/code><code>order_no: varchar(64), \u5145\u503c\u8ba2\u5355\u53f7 <\/code><code>charge_value: integer, \u5145\u503c\u91d1\u989d, \u4ee5\u5206\u4e3a\u5355\u4f4d <\/code><code>### participate_activity \u4e8b\u4ef6 <\/code><code>properties \u5c5e\u6027\u6709: <\/code><code>activity_id: varchar(64), <\/code><code>referee: varchar(64), \u6d3b\u52a8\u63a8\u8350\u4eba <\/code><code>### start_fight \u4e8b\u4ef6<\/code><code>properties \u5c5e\u6027\u6709: <\/code><code>game_id: varchar(64), \u6e38\u620f\u5bf9\u6218ID <\/code><code>## \u9700\u6c42 <\/code><code>1. \u8bf7\u5145\u5206\u5229\u7528Amazon Redshift \u7684\u6570\u636e\u5206\u6790\u80fd\u529b, \u5c06\u5b58\u50a8\u5728Amazon MSK\u4e2d\u7684\u6d41\u5f0f\u70b9\u51fb\u6d41\u6570\u636e\u901a\u8fc7Redshift \u7684Streaming Ingestion \u7279\u6027 \u5b58\u50a8\u5728Amazon Redshift \u8868\u4e2d, \u8bf7\u6839\u636e\u70b9\u51fb\u6d41\u6570\u636e\u683c\u5f0f, \u6309Redshift \u7684\u6700\u4f73\u5b9e\u8df5, \u5efa\u7acb\u76f8\u5e94\u7684\u8868\u7ed3\u6784. \u521b\u5efaStreaming Ingestion \u65f6, authentication \u4e3anone, iam_role \u4e3adefault<\/code><code>2. \u70b9\u51fb\u6d41\u6570\u636e\u5b58\u50a8\u5230Redshift \u8868\u540e, \u9700\u8981\u6309\u7167\u4e0d\u540c\u7684\u4e8b\u4ef6\u7c7b\u578b, \u5c06\u5177\u4f53\u7c7b\u578b\u7684\u4e8b\u4ef6\u6570\u636e\u5355\u72ec\u5b58\u50a8\u5230\u4e0d\u540c\u7684\u8868\u4e2d, \u4ee5\u4fbf\u540e\u7eed\u5206\u6790 <\/code><code>3. \u6570\u636e\u5206\u6790:\u4ee5\u5929\u4e3a\u5355\u4f4d, \u7edf\u8ba1\u6bcf\u5929\u7684\u767b\u5f55\u7528\u6237\u6570, \u5145\u503c\u7528\u6237\u6570, \u6d3b\u52a8\u53c2\u4e0e\u7528\u6237\u6570, \u6e38\u620f\u5bf9\u6218\u7528\u6237\u6570, \u5f53\u65e5\u5145\u503c\u91d1\u989d <\/code><code>4. \u6240\u6709\u7684\u6570\u636e\u8868\u5efa\u5728dev \u6570\u636e\u5e93\u4e2d\u7684 public schema \u4e2d.<\/code><\/pre>\n\n\n\n<p>\u5728\u9700\u6c42\u7406\u89e3\u548c\u4efb\u52a1\u89c4\u5212\u65b9\u9762\uff0cCline \u7ed3\u5408 Amazon Bedrock Claude 3.7 Sonnet LLM \u5f88\u597d\u5730\u6355\u6349\u5230\u4e86\u5404\u4e2a\u9700\u6c42\u70b9\uff0c\u7ed9\u51fa\u4e86\u9488\u5bf9\u8be5\u9700\u6c42\u975e\u5e38\u5b8c\u6574\u7684\u4efb\u52a1\u89c4\u5212\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u751f\u6210\u7528\u4e8e\u5728 Redshift \u4e2d\u521b\u5efa\u8868\u7684 SQL scripts<\/li>\n\n\n\n<li>\u8bbe\u7f6e Redshift \u7684 MSK Streaming Ingestion<\/li>\n\n\n\n<li>\u521b\u5efa\u6570\u636e\u8f6c\u6362\u7684 SQL scripts\uff0c\u5c06\u4e0d\u540c\u7684\u4e8b\u4ef6\u6570\u636e\u79fb\u52a8\u5230\u5bf9\u5e94\u7684\u8868\u4e2d<\/li>\n\n\n\n<li>\u521b\u5efa SQL scripts \u4ee5\u8fdb\u884c\u5206\u6790\u67e5\u8be2<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/de\/debd6bcc8b10608806b68e67a408fc25.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u4efb\u52a1\u7684\u5177\u4f53\u6267\u884c\u65b9\u9762\uff0cCline + Amazon Bedrock Claude 3.7 Sonnet LLM \u53ef\u4ee5\u975e\u5e38\u597d\u5730\u7ed9\u51fa\u6574\u4f53\u7684\u4efb\u52a1\u6267\u884c\u6846\u67b6\uff0c\u4f46\u5728\u4e00\u4e9b\u7ec6\u8282\u65b9\u9762\uff0c\u8fd8\u9700\u8981\u4eba\u5de5\u53c2\u4e0e\u5e76\u8fdb\u884c\u6821\u6b63\uff0c\u5982\u5728\u521b\u5efa Streaming Ingestion \u7684 External Schema \u65f6\uff0c\u4f1a\u9057\u6f0f\u5fc5\u8981\u7684 AUTHENTITION \u548c URI Clause\uff0c\u540c\u65f6\u5728\u521b\u5efa Streaming Ingestion \u7684 Materialized View \u65f6\uff0c\u6ca1\u6709\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\uff0c\u4f1a\u5728\u6444\u53d6\u65f6\u628a\u6bcf\u4e2a\u5b57\u6bb5\u90fd\u901a\u8fc7 Redshift \u7684 JSON \u51fd\u6570\u63d0\u53d6\u51fa\u6765\uff0c\u8fd9\u4e9b\u70b9\u9700\u8981\u4eba\u5de5\u8fdb\u884c\u53c2\u4e0e\u77eb\u6b63\u3002\u5f53\u7ed9\u51fa\u4fee\u6539\u610f\u89c1\u540e\uff0cClaude 3.7 Sonnet \u80fd\u6839\u636e\u53cd\u9988\u7ed9\u51fa\u6b63\u786e\u7684\u4fee\u6539\u63aa\u65bd\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/57\/574ad8f617e59263f9876ca2e79b65db.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u5b8c\u6210\u6574\u4e2a\u6570\u636e\u5206\u6790\u4efb\u52a1\u7684\u8fc7\u7a0b\u4e2d\uff0cRedshift MCP Server \u63d0\u4f9b\u7684 Tools \u548c Resources \u80fd\u529b\u4e3a Cline \u548c Claude \u6a21\u578b\u63d0\u4f9b\u4e86\u5f88\u597d\u7684\u652f\u6491\uff0c\u5982\u901a\u8fc7 execute_sql Tool \u8fdb\u884c\u5efa\u8868\u8bed\u53e5\u3001Streaming Ingestion Externa Schema \u548c Materialized View \u7684\u521b\u5efa\uff0c\u540c\u65f6\u5728 SQL \u6267\u884c\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u7ed9 SQL \u8bed\u6cd5\u6709\u9519\u8bef\uff0c\u901a\u8fc7\u8fd4\u56de\u7684\u5f02\u5e38\u4fe1\u606f\uff0cCline \u548c Claude \u90fd\u80fd\u5f88\u597d\u7684\u8fdb\u884c\u77eb\u6b63\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/ec\/ece211102500d115a5a576df537767be.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6700\u7ec8\uff0c\u9488\u5bf9\u5b58\u653e\u5728 Amazon MSK \u4e2d\u7684\u70b9\u51fb\u6d41\u6570\u636e\uff0cCline + Redshift MCP Server \u8fd9\u4e00\u7ec4\u5408\u7ed9\u51fa\u4e86\u975e\u5e38\u5b8c\u6574\u7684\u5206\u6790\u89e3\u51b3\u65b9\u6848\u548c\u5b9e\u73b0\uff0c\u5b9e\u73b0\u4e86\u5bf9\u70b9\u51fb\u6d41\u6570\u636e\u5728 Redshift \u4e2d\u7aef\u5230\u7aef\u6570\u636e\u7684\u5efa\u6a21\u4e0e\u5206\u6790\uff0c\u521b\u5efa\u7684\u5206\u6790\u6307\u6807\u4e0e\u9700\u6c42\u5b8c\u7f8e\u5339\u914d\u3002\u5728 Redshift \u4e2d\u5efa\u7acb\u7684\u8d44\u6e90\u4ee5\u53ca\u6700\u7ec8\u7684\u6570\u636e\u5206\u6790\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u8be6\u7ec6\u7684 Cline \u4efb\u52a1\u8bb0\u5f55\u53ca\u751f\u6210\u7ed3\u679c\u5728\u6b64\u3002<\/p>\n\n\n\n<p>\u5efa\u7acb\u7684\u8868\u548c\u89c6\u56fe\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>clickstream_stream_mv\uff1aStreaming Ingestion \u7684\u7269\u5316\u89c6\u56fe<\/li>\n\n\n\n<li>activity\/charge\/game\/login\/clickstream_events\uff1a\u4e0d\u540c\u4e8b\u4ef6\u7c7b\u578b\u7684\u6570\u636e\u8868\u4ee5\u53ca\u4e8b\u4ef6\u603b\u8868<\/li>\n\n\n\n<li>daily_analytics\uff1a\u6bcf\u65e5\u6570\u636e\u5206\u6790\u89c6\u56fe\uff0c\u5305\u62ec login_user_count\uff08\u6bcf\u65e5\u767b\u5f55\u7528\u6237\u6570\uff09\u3001charge_user_count\uff08\u6bcf\u65e5\u5145\u503c\u7528\u6237\u6570\uff09\u3001activity_user_count\uff08\u6bcf\u65e5\u6d3b\u52a8\u53c2\u4e0e\u7528\u6237\u6570\uff09\u3001game_user_count\uff08\u6bcf\u65e5\u6e38\u620f\u5f00\u5c40\u6570\uff09\u3001daily_charge_amount\uff08\u6bcf\u65e5\u5145\u503c\u603b\u91d1\u989d\u6570\uff09<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/static001.geekbang.org\/infoq\/fa\/fa690e6cc776eb2cd56d0b83987718e7.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u603b\u7ed3\u4e0e\u5c55\u671b<\/strong><\/h2>\n\n\n\n<p>\u7efc\u4e0a\uff0cCline \u7ed3\u5408\u7b14\u8005\u5f00\u53d1\u7684 Amazon Redshift MCP Server\uff0c\u5728\u5355\u8868\u6570\u636e\u5206\u6790\uff0c\u4ee5\u53ca\u5bf9\u5b58\u50a8\u5728 Amazon MSK \u4e2d\u7684\u70b9\u51fb\u6d41\u6570\u636e\u8fdb\u884c\u7aef\u5230\u7aef\u7684\u591a\u6b65\u9aa4\u6570\u636e\u5efa\u6a21\u548c\u5206\u6790\u573a\u666f\u8868\u73b0\u975e\u5e38\u51fa\u8272\uff0c\u5728\u7ed9\u51fa\u5177\u4f53\u7684\u5206\u6790\u9700\u6c42\u540e\uff0c\u8fd9\u4e00\u7ec4\u5408\u53ef\u4ee5\u81ea\u4e3b\u5b8c\u6210\u6570\u636e\u5efa\u6a21\u548c\u5206\u6790\u4efb\u52a1\uff0c\u57fa\u672c\u53ef\u4ee5\u5b9e\u73b0 Agentic Data Analysis\u3002\u8fbe\u5230\u8fd9\u6837\u7684\u6548\u679c\u5f97\u76ca\u4e8e\u4e09\u4e2a\u65b9\u9762\u7684\u56e0\u7d20\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u50cf Claude 3.7 Sonnet \u8fd9\u6837\u5f3a\u5927\u7684\u57fa\u7840\u6a21\u578b\u4e3a Agentic Data Analysis \u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u4efb\u52a1\u89c4\u5212\u3001\u63a8\u7406\u4ee5\u53ca\u4ee3\u7801\u751f\u6210\u80fd\u529b\uff1b<\/li>\n\n\n\n<li>\u7c7b\u4f3c Cline \u8fd9\u79cd Agentic \u5e94\u7528\u5145\u5206\u5229\u7528\u5e95\u5c42\u57fa\u7840\u6a21\u578b\u7684\u80fd\u529b\uff0c\u4e3a\u4efb\u52a1\u7684\u5b9e\u73b0\u63d0\u4f9b\u57fa\u7840\u5de5\u5177\u4ee5\u53ca\u5916\u63a5\u5de5\u5177\u7684\u80fd\u529b\uff1b<\/li>\n\n\n\n<li>MCP \u534f\u8bae\u4f7f\u5f97\u5404\u79cd\u6570\u636e\u5206\u6790\u7684\u4ea7\u54c1\u548c\u5de5\u5177\u53ef\u4ee5\u4ee5\u6807\u51c6\u5316\u7684\u65b9\u5f0f\u63a5\u5165\u5230 Agentic \u5e94\u7528\u4e2d\uff0c\u5145\u5f53\u5176\u89e6\u624b\uff0c\u4f7f\u5f97 Agentic \u5e94\u7528\u53ef\u4ee5\u8c03\u5ea6\u548c\u64cd\u4f5c\u5404\u79cd\u4e0d\u540c\u7684\u6570\u636e\u5206\u6790\u5de5\u5177\uff0c\u6765\u5b9e\u73b0 Agentic Data Analysis\u3002<\/li>\n\n\n\n<li>Agentic \u7ed3\u5408 MCP Server \u8fd9\u4e00\u7ec4\u5408\u5728\u6570\u636e\u5206\u6790\u9886\u57df\u6f5c\u529b\u5de8\u5927\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u6570\u636e\u5206\u6790\u6548\u7387\uff0c\u534f\u52a9\u6570\u636e\u5de5\u7a0b\u5e08\u8fdb\u884c\u5404\u79cd Data Pipeline \u7684\u5f00\u53d1\u548c\u7ba1\u7406\u3002\u968f\u7740\u57fa\u7840\u6a21\u578b\u8d8a\u6765\u8d8a\u667a\u80fd\uff0cAgentic \u5e94\u7528\u4f1a\u8d8a\u6765\u8d8a\u5f3a\u5927,\uff0c\u4f1a\u6709\u8d8a\u6765\u8d8a\u591a\u7684\u6570\u636e\u5206\u6790\u4ea7\u54c1\u548c\u5de5\u5177\u901a\u8fc7 MCP \u7684\u65b9\u5f0f\u63a5\u5165\u5230 Agentic \u5e94\u7528\u4e2d\uff0c\u5b9e\u73b0 Agentic Data Analysis\u3002<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>1. \u524d\u8a00 \u4e00\u822c\u800c\u8a00\uff0cAgentic AI \u662f\u6307\u80fd\u591f\u8fdb\u884c\u63a8\u7406\u548c\u89c4\u5212\uff0c\u81ea\u4e3b\u51b3\u5b9a\u505a\u4ec0\u4e48\u3001\u4f55\u65f6\u505a\u6765\u89e3\u51b3\u590d\u6742\u7684\u591a\u6b65\u9aa4\u95ee\u9898\u7684\u8f6f\u4ef6\u7cfb\u7edf\u3002\u800c Agentic Data Analysis \u5219\u662f Agentic AI \u5728\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u89c1\u89e3\u751f\u6210\u65b9\u9762\u7684\u5e94\u7528\u3002Model Context Protocol\uff08MCP\uff09\u901a\u8fc7\u63d0\u4f9b\u4e00\u4e2a\u6807\u51c6\u5316\u7684\u534f\u8bae\uff0c\u5c06 AI \u6a21\u578b\u7684\u51b3\u7b56\u903b\u8f91\u548c\u5916\u90e8\u8d44\u6e90\u89e3\u85d5\uff0c\u89e3\u51b3\u5927\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u3001\u6570\u636e\u6e90\u7684\u96c6\u6210\u96be\u9898\u3002\u5728\u6570&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-ai","category-aws"],"_links":{"self":[{"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":3,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/posts\/277\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flycloud.io\/en\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}