{"id":116798,"date":"2025-07-14T17:08:10","date_gmt":"2025-07-14T10:08:10","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=116798"},"modified":"2026-10-30T10:59:05","modified_gmt":"2026-10-30T03:59:05","slug":"mcp-la-gi","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/mcp-la-gi\/","title":{"rendered":"MCP l\u00e0 g\u00ec? Model Context Protocol ho\u1ea1t \u0111\u1ed9ng th\u1ebf n\u00e0o, MCP server l\u00e0 g\u00ec?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>MCP (Model Context Protocol) l\u00e0 giao th\u1ee9c m\u1edf gi\u00fap \u1ee9ng d\u1ee5ng AI k\u1ebft n\u1ed1i v\u1edbi c\u00f4ng c\u1ee5, d\u1eef li\u1ec7u v\u00e0 h\u1ec7 th\u1ed1ng b\u00ean ngo\u00e0i theo m\u1ed9t chu\u1ea9n chung, thay v\u00ec ph\u1ea3i vi\u1ebft m\u1ed9t t\u00edch h\u1ee3p ri\u00eang cho t\u1eebng d\u1ecbch v\u1ee5.<\/strong> Anthropic c\u00f4ng b\u1ed1 MCP ng\u00e0y 25\/11\/2024 (<a href=\"https:\/\/www.anthropic.com\/news\/model-context-protocol\" target=\"_blank\" rel=\"noopener nofollow\">th\u00f4ng b\u00e1o g\u1ed1c<\/a>); nh\u1edd MCP, m\u1ed9t <a href=\"https:\/\/tino.vn\/blog\/ai-agent-la-gi\/\">AI agent<\/a> c\u00f3 th\u1ec3 \u0111\u1ecdc t\u1ec7p, tra c\u01a1 s\u1edf d\u1eef li\u1ec7u hay g\u1ecdi API m\u00e0 kh\u00f4ng c\u1ea7n l\u1eadp tr\u00ecnh l\u1ea1i cho t\u1eebng model. Ph\u1ea7n &#8220;b\u1ed9 n\u00e3o&#8221; ph\u00eda sau v\u1eabn l\u00e0 m\u1ed9t LLM g\u1ecdi qua API key, xem <a href=\"https:\/\/tino.vn\/blog\/llm-lay-api-key-mien-phi\/\">c\u00e1ch l\u1ea5y LLM API key mi\u1ec5n ph\u00ed<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1c m\u1ee5c d\u01b0\u1edbi \u0111\u00e2y gi\u1ea3i th\u00edch MCP ho\u1ea1t \u0111\u1ed9ng ra sao, MCP server l\u00e0 g\u00ec, khi n\u00e0o n\u00ean v\u00e0 kh\u00f4ng n\u00ean d\u00f9ng. N\u1ebfu b\u1ea1n d\u00f9ng <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\">n8n<\/a>, m\u1ee5c cu\u1ed1i c\u00f3 v\u00ed d\u1ee5 d\u1ef1ng MCP server v\u00e0 MCP client ngay trong workflow.<\/p>\n\n\n\n<h2 id=\"MCP_l\u00e0_g\u00ec?\">MCP l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP l\u00e0 m\u1ed9t \u0111\u1eb7c t\u1ea3 (specification) c\u00f4ng khai quy \u0111\u1ecbnh c\u00e1ch \u1ee9ng d\u1ee5ng AI v\u00e0 c\u00e1c d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i trao \u0111\u1ed5i v\u1edbi nhau b\u1eb1ng th\u00f4ng \u0111i\u1ec7p JSON-RPC 2.0. D\u1ecbch v\u1ee5 n\u00e0o \u0111\u00f3ng g\u00f3i kh\u1ea3 n\u0103ng c\u1ee7a m\u00ecnh th\u00e0nh MCP server th\u00ec m\u1ecdi \u1ee9ng d\u1ee5ng c\u00f3 MCP client \u0111\u1ec1u d\u00f9ng \u0111\u01b0\u1ee3c, kh\u00f4ng ph\u1ee5 thu\u1ed9c model hay h\u00e3ng.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">T\u00e0i li\u1ec7u MCP v\u00ed giao th\u1ee9c n\u00e0y nh\u01b0 m\u1ed9t \u201cc\u1ed5ng USB-C\u201d cho AI, gi\u00fap c\u00e1c m\u00f4 h\u00ecnh AI giao ti\u1ebfp v\u1edbi nhi\u1ec1u c\u00f4ng c\u1ee5, API ho\u1eb7c ngu\u1ed3n d\u1eef li\u1ec7u m\u00e0 kh\u00f4ng c\u1ea7n x\u00e2y d\u1ef1ng t\u1eebng k\u1ebft n\u1ed1i ri\u00eang l\u1ebb cho m\u1ed7i d\u1ecbch v\u1ee5. B\u00ean vi\u1ebft c\u00f4ng c\u1ee5 ch\u1ec9 c\u1ea7n l\u00e0m m\u1ed9t MCP server, b\u00ean l\u00e0m \u1ee9ng d\u1ee5ng ch\u1ec9 c\u1ea7n m\u1ed9t MCP client.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Theo <a href=\"https:\/\/modelcontextprotocol.io\/specification\/latest\" target=\"_blank\" rel=\"noopener nofollow\">\u0111\u1eb7c t\u1ea3 MCP<\/a> (b\u1ea3n hi\u1ec7n h\u00e0nh 2026-07-28, \u0111\u1ed1i chi\u1ebfu 29\/10\/2026), thi\u1ebft k\u1ebf c\u1ee7a MCP l\u1ea5y c\u1ea3m h\u1ee9ng t\u1eeb Language Server Protocol, chu\u1ea9n gi\u00fap tr\u00ecnh so\u1ea1n code h\u1ed7 tr\u1ee3 nhi\u1ec1u ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh. MCP nay \u0111\u01b0\u1ee3c qu\u1ea3n l\u00fd d\u01b0\u1edbi <a href=\"https:\/\/aaif.io\/\" target=\"_blank\" rel=\"noopener nofollow\">Agentic AI Foundation (AAIF)<\/a> thu\u1ed9c Linux Foundation, c\u00f9ng v\u1edbi chu\u1ea9n <a href=\"https:\/\/tino.vn\/blog\/claude-agent-skills-la-gi\/\">Agent Skills<\/a>.<\/p>\n\n\n\n<h2 id=\"MCP_ho\u1ea1t_\u0111\u1ed9ng_nh\u01b0_th\u1ebf_n\u00e0o?\">MCP ho\u1ea1t \u0111\u1ed9ng nh\u01b0 th\u1ebf n\u00e0o?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP chia h\u1ec7 th\u1ed1ng th\u00e0nh ba vai: host l\u00e0 \u1ee9ng d\u1ee5ng ng\u01b0\u1eddi d\u00f9ng m\u1edf (\u1ee9ng d\u1ee5ng chat, tr\u00ecnh so\u1ea1n code, c\u00f4ng c\u1ee5 workflow), client l\u00e0 b\u1ed9 k\u1ebft n\u1ed1i n\u1eb1m trong host, server l\u00e0 d\u1ecbch v\u1ee5 cung c\u1ea5p c\u00f4ng c\u1ee5 v\u00e0 d\u1eef li\u1ec7u. M\u1ed7i client n\u1ed1i v\u1edbi m\u1ed9t server; model ch\u1ec9 th\u1ea5y danh s\u00e1ch c\u00f4ng c\u1ee5 m\u00e0 host \u0111\u01b0a cho n\u00f3.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/mcp-la-gi-host-client-server.webp\" alt=\"S\u01a1 \u0111\u1ed3 MCP: \u1ee9ng d\u1ee5ng host ch\u1ee9a hai MCP client; client 1 n\u1ed1i server c\u1ee5c b\u1ed9 (file, git) qua stdio, client 2 n\u1ed1i server t\u1eeb xa (GitHub, CRM) qua Streamable HTTP; server cung c\u1ea5p tools, resources, prompts\" class=\"wp-image-132883\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/mcp-la-gi-host-client-server.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/mcp-la-gi-host-client-server-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/mcp-la-gi-host-client-server-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/mcp-la-gi-host-client-server-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tools (c\u00f4ng c\u1ee5):<\/strong> h\u00e0m m\u00e0 model \u0111\u01b0\u1ee3c g\u1ecdi, v\u00ed d\u1ee5 t\u1ea1o issue, g\u1eedi email, ch\u1ea1y truy v\u1ea5n. \u0110\u00e2y l\u00e0 ph\u1ea7n hay d\u00f9ng nh\u1ea5t.<\/li>\n\n\n<li><strong>Resources (t\u00e0i nguy\u00ean):<\/strong> d\u1eef li\u1ec7u \u0111\u1ec3 \u0111\u1ecdc nh\u01b0 t\u1ec7p, b\u1ea3n ghi, t\u00e0i li\u1ec7u, g\u1eafn v\u1edbi m\u1ed9t URI.<\/li>\n\n\n<li><strong>Prompts:<\/strong> m\u1eabu l\u1ec7nh ho\u1eb7c quy tr\u00ecnh d\u1ef1ng s\u1eb5n \u0111\u1ec3 ng\u01b0\u1eddi d\u00f9ng ch\u1ecdn.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">V\u1ec1 \u0111\u01b0\u1eddng truy\u1ec1n, <a href=\"https:\/\/modelcontextprotocol.io\/specification\/latest\/basic\/transports\" target=\"_blank\" rel=\"noopener nofollow\">\u0111\u1eb7c t\u1ea3<\/a> \u0111\u1ecbnh ngh\u0129a hai c\u00e1ch chu\u1ea9n: <strong>stdio<\/strong> khi host t\u1ef1 ch\u1ea1y server nh\u01b0 m\u1ed9t ti\u1ebfn tr\u00ecnh tr\u00ean c\u00f9ng m\u00e1y, v\u00e0 <strong>Streamable HTTP<\/strong> khi server ch\u1ea1y \u1edf xa, m\u1ed7i th\u00f4ng \u0111i\u1ec7p l\u00e0 m\u1ed9t request HTTP POST. Ki\u1ec3u HTTP+SSE c\u0169 \u0111\u00e3 b\u1ecb \u0111\u00e1nh d\u1ea5u ng\u1eebng d\u00f9ng t\u1eeb b\u1ea3n 2025-03-26.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea3n 2026-07-28 c\u00f2n b\u1ecf phi\u00ean l\u00e0m vi\u1ec7c \u1edf t\u1ea7ng giao th\u1ee9c: m\u1ed7i request t\u1ef1 mang phi\u00ean b\u1ea3n giao th\u1ee9c v\u00e0 kh\u1ea3 n\u0103ng c\u1ee7a client, server kh\u00f4ng c\u1ea7n b\u01b0\u1edbc b\u1eaft tay <code>initialize<\/code> n\u1eefa (<a href=\"https:\/\/modelcontextprotocol.io\/specification\/2026-07-28\/changelog\" target=\"_blank\" rel=\"noopener nofollow\">changelog \u0111\u1eb7c t\u1ea3<\/a>). \u1ee8ng d\u1ee5ng v\u00e0 SDK c\u0169 v\u1eabn c\u00f3 th\u1ec3 d\u00f9ng phi\u00ean b\u1ea3n c\u0169 h\u01a1n, n\u00ean khi g\u1eb7p t\u00e0i li\u1ec7u c\u0169 nh\u1eafc t\u1edbi &#8220;session&#8221; hay &#8220;SSE endpoint&#8221;, h\u00e3y ki\u1ec3m phi\u00ean b\u1ea3n.<\/p>\n\n\n\n<h2 id=\"MCP_server_l\u00e0_g\u00ec?\">MCP server l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP server l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ee9ng tr\u01b0\u1edbc m\u1ed9t d\u1ecbch v\u1ee5 (kho m\u00e3, Google Drive, CRM, c\u01a1 s\u1edf d\u1eef li\u1ec7u, workflow) v\u00e0 m\u00f4 t\u1ea3 kh\u1ea3 n\u0103ng c\u1ee7a d\u1ecbch v\u1ee5 \u0111\u00f3 th\u00e0nh c\u00e1c tool, resource, prompt theo chu\u1ea9n MCP. Khi model ch\u1ecdn m\u1ed9t tool, server nh\u1eadn l\u1eddi g\u1ecdi, t\u1ef1 g\u1ecdi d\u1ecbch v\u1ee5 ph\u00eda sau r\u1ed3i tr\u1ea3 k\u1ebft qu\u1ea3 v\u1ec1.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Server c\u1ee5c b\u1ed9:<\/strong> ch\u1ea1y tr\u00ean m\u00e1y b\u1ea1n qua stdio, h\u1ee3p v\u1edbi thao t\u00e1c t\u1ec7p, git, tr\u00ecnh duy\u1ec7t; d\u1eef li\u1ec7u kh\u00f4ng r\u1eddi m\u00e1y.<\/li>\n\n\n<li><strong>Server t\u1eeb xa:<\/strong> ch\u1ea1y tr\u00ean m\u00e1y ch\u1ee7, truy c\u1eadp qua URL; h\u1ee3p v\u1edbi d\u1ecbch v\u1ee5 d\u00f9ng chung cho c\u1ea3 nh\u00f3m, c\u1ea7n x\u00e1c th\u1ef1c (token, OAuth).<\/li>\n\n\n<li><strong>Server b\u1ecdc API s\u1eb5n c\u00f3:<\/strong> ph\u1ea7n l\u1edbn MCP server ch\u1ec9 l\u00e0 l\u1edbp m\u1ecfng ph\u00eda tr\u00ean m\u1ed9t API REST, xem so s\u00e1nh \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/mcp-va-api-trong-ai-agent\/\">MCP v\u00e0 API trong AI agent<\/a>.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"MCP_client_l\u00e0_g\u00ec?\">MCP client l\u00e0 g\u00ec?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">MCP client l\u00e0 ph\u1ea7n n\u1eb1m trong \u1ee9ng d\u1ee5ng host, chuy\u1ec3n y\u00eau c\u1ea7u c\u1ee7a AI agent t\u1edbi MCP server \u0111\u1ec3 g\u1ecdi c\u00e1c c\u00f4ng c\u1ee5 ho\u1eb7c workflow t\u01b0\u01a1ng \u1ee9ng. N\u00f3 c\u0169ng nh\u1eadn k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 t\u1eeb server v\u00e0 chuy\u1ec3n ti\u1ebfp cho AI Agent x\u1eed l\u00fd ti\u1ebfp. V\u1edbi server t\u1eeb xa, client th\u01b0\u1eddng ph\u1ea3i \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh th\u00f4ng tin x\u00e1c th\u1ef1c tr\u01b0\u1edbc khi k\u1ebft n\u1ed1i.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MCP kh\u00e1c v\u1edbi <a href=\"https:\/\/tino.vn\/blog\/rag-la-gi\/\">RAG<\/a>: RAG lo ph\u1ea7n t\u00ecm \u0111\u00fang \u0111o\u1ea1n t\u00e0i li\u1ec7u \u0111\u1ec3 model tr\u1ea3 l\u1eddi, c\u00f2n MCP lo ph\u1ea7n k\u1ebft n\u1ed1i \u0111\u1ec3 model \u0111\u1ecdc d\u1eef li\u1ec7u v\u00e0 th\u1ef1c hi\u1ec7n h\u00e0nh \u0111\u1ed9ng. Hai c\u00e1ch th\u01b0\u1eddng \u0111\u01b0\u1ee3c d\u00f9ng c\u00f9ng nhau.<\/p>\n\n\n\n<h2 id=\"T\u1ea1i_sao_n\u00ean_d\u00f9ng_MCP?\">T\u1ea1i sao n\u00ean d\u00f9ng MCP?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP c\u00f3 \u00edch khi m\u1ed9t \u1ee9ng d\u1ee5ng AI c\u1ea7n n\u1ed1i v\u1edbi nhi\u1ec1u c\u00f4ng c\u1ee5, ho\u1eb7c m\u1ed9t c\u00f4ng c\u1ee5 mu\u1ed1n ph\u1ee5c v\u1ee5 nhi\u1ec1u \u1ee9ng d\u1ee5ng AI. Thay v\u00ec m\u1ed7i c\u1eb7p \u1ee9ng d\u1ee5ng v\u00e0 c\u00f4ng c\u1ee5 c\u1ea7n m\u1ed9t t\u00edch h\u1ee3p ri\u00eang, m\u1ed7i b\u00ean ch\u1ec9 l\u00e0m m\u1ed9t l\u1ea7n theo chu\u1ea9n chung; th\u00eam hay b\u1edbt c\u00f4ng c\u1ee5 kh\u00f4ng ph\u1ea3i s\u1eeda l\u1ea1i logic c\u1ee7a agent.<\/p>\n\n\n\n<h3 id=\"T\u0103ng_t\u1ed1c_\u0111\u1ed9_t\u00edch_h\u1ee3p_v\u00e0_m\u1edf_r\u1ed9ng\">T\u0103ng t\u1ed1c \u0111\u1ed9 t\u00edch h\u1ee3p v\u00e0 m\u1edf r\u1ed9ng<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ed5 sung ho\u1eb7c thay c\u00f4ng c\u1ee5 \u0111\u01a1n gi\u1ea3n h\u01a1n: ch\u1ec9 c\u1ea7n th\u00eam ho\u1eb7c g\u1ee1 m\u1ed9t MCP server. B\u1ea1n kh\u00f4ng c\u1ea7n c\u1ea5u h\u00ecnh l\u1ea1i t\u1eebng b\u01b0\u1edbc, gi\u00fap h\u1ec7 th\u1ed1ng linh ho\u1ea1t, d\u1ec5 m\u1edf r\u1ed9ng khi c\u00f3 nhu c\u1ea7u m\u1edbi ho\u1eb7c thay \u0111\u1ed5i c\u00f4ng ngh\u1ec7.<\/p>\n\n\n\n<h3 id=\"T\u1ed1i_\u01b0u_h\u00f3a_kh\u1ea3_n\u0103ng_t\u1ef1_\u0111\u1ed9ng_h\u00f3a_c\u1ee7a_AI\">T\u1ed1i \u01b0u h\u00f3a kh\u1ea3 n\u0103ng t\u1ef1 \u0111\u1ed9ng h\u00f3a c\u1ee7a AI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AI c\u00f3 th\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u th\u1eddi gian th\u1ef1c, s\u1eed d\u1ee5ng c\u00e1c c\u00f4ng c\u1ee5 b\u00ean ngo\u00e0i, thay v\u00ec ch\u1ec9 d\u1ef1a v\u00e0o d\u1eef li\u1ec7u \u0111\u00e3 h\u1ecdc. Model t\u1ef1 ch\u1ecdn c\u00f4ng c\u1ee5 ph\u00f9 h\u1ee3p d\u1ef1a tr\u00ean m\u00f4 t\u1ea3 m\u00e0 server cung c\u1ea5p.<\/p>\n\n\n\n<h3 id=\"Thi\u1ebft_k\u1ebf_workflow_\u0111\u01a1n_gi\u1ea3n,_tr\u1ef1c_quan\">Thi\u1ebft k\u1ebf workflow \u0111\u01a1n gi\u1ea3n, tr\u1ef1c quan<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Trong c\u00e1c c\u00f4ng c\u1ee5 low-code nh\u01b0 n8n, MCP c\u00f3 s\u1eb5n d\u01b0\u1edbi d\u1ea1ng node: k\u00e9o th\u1ea3 node MCP v\u00e0 n\u1ed1i v\u1edbi c\u00f4ng c\u1ee5 c\u1ea7n d\u00f9ng, kh\u00f4ng ph\u1ea3i vi\u1ebft code g\u1ecdi t\u1eebng API.<\/p>\n\n\n\n<h3 id=\"T\u0103ng_t\u00ednh_b\u1ea3o_m\u1eadt_v\u00e0_ki\u1ec3m_so\u00e1t\">T\u0103ng t\u00ednh b\u1ea3o m\u1eadt v\u00e0 ki\u1ec3m so\u00e1t<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1eb7c t\u1ea3 MCP c\u00f3 ph\u1ea7n x\u00e1c th\u1ef1c d\u1ef1a tr\u00ean OAuth cho server t\u1eeb xa v\u00e0 y\u00eau c\u1ea7u host xin \u0111\u1ed3ng \u00fd c\u1ee7a ng\u01b0\u1eddi d\u00f9ng tr\u01b0\u1edbc khi g\u1ecdi tool. C\u00e1c c\u00f4ng c\u1ee5 nh\u01b0 n8n c\u00f2n cho \u0111\u1eb7t Bearer token ho\u1eb7c header ri\u00eang cho endpoint MCP.<\/p>\n\n\n\n<h2 id=\"L\u01b0u_\u00fd_b\u1ea3o_m\u1eadt_v\u00e0_khi_n\u00e0o_kh\u00f4ng_n\u00ean_d\u00f9ng_MCP\">L\u01b0u \u00fd b\u1ea3o m\u1eadt v\u00e0 khi n\u00e0o kh\u00f4ng n\u00ean d\u00f9ng MCP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1ed7i tool trong MCP l\u00e0 m\u1ed9t \u0111\u01b0\u1eddng \u0111\u1ec3 model ch\u1ea1y h\u00e0nh \u0111\u1ed9ng th\u1eadt, n\u00ean r\u1ee7i ro ch\u00ednh \u0111\u1ebfn t\u1eeb server kh\u00f4ng tin c\u1eady, quy\u1ec1n qu\u00e1 r\u1ed9ng v\u00e0 endpoint \u0111\u1ec3 l\u1ed9. \u0110\u1eb7c t\u1ea3 MCP y\u00eau c\u1ea7u coi m\u00f4 t\u1ea3 tool t\u1eeb server l\u1ea1 l\u00e0 d\u1eef li\u1ec7u kh\u00f4ng tin c\u1eady v\u00e0 ph\u1ea3i h\u1ecfi ng\u01b0\u1eddi d\u00f9ng tr\u01b0\u1edbc khi g\u1ecdi tool.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ch\u1ec9 c\u00e0i server r\u00f5 ngu\u1ed3n g\u1ed1c:<\/strong> m\u00f4 t\u1ea3 tool c\u00f3 th\u1ec3 ch\u1ee9a l\u1ec7nh \u1ea9n (prompt injection) khi\u1ebfn agent l\u00e0m vi\u1ec7c ngo\u00e0i \u00fd mu\u1ed1n.<\/li>\n\n\n<li><strong>C\u1ea5p quy\u1ec1n t\u1ed1i thi\u1ec3u:<\/strong> token c\u1ee7a server ch\u1ec9 n\u00ean \u0111\u1ecdc\/ghi \u0111\u00fang ph\u1ea7n c\u1ea7n d\u00f9ng; t\u00e1ch quy\u1ec1n \u0111\u1ecdc v\u00e0 quy\u1ec1n xo\u00e1.<\/li>\n\n\n<li><strong>Kh\u00f4ng \u0111\u1ec3 endpoint c\u00f4ng khai kh\u00f4ng x\u00e1c th\u1ef1c:<\/strong> ai bi\u1ebft URL \u0111\u1ec1u g\u1ecdi \u0111\u01b0\u1ee3c tool. \u0110\u1eb7t Bearer token ho\u1eb7c OAuth v\u00e0 \u0111\u1ed5i URL n\u1ebfu \u0111\u00e3 l\u1ee1 chia s\u1ebb.<\/li>\n\n\n<li><strong>Gi\u1eef API key \u1edf ph\u00eda server:<\/strong> l\u01b0u trong bi\u1ebfn m\u00f4i tr\u01b0\u1eddng ho\u1eb7c kho credential, kh\u00f4ng d\u00e1n v\u00e0o code public, \u0111\u1eb7t gi\u1edbi h\u1ea1n chi ti\u00eau v\u00e0 xoay key khi nghi l\u1ed9; xem <a href=\"https:\/\/tino.vn\/blog\/bao-mat-credentials-va-api-keys-trong-n8n\/\">c\u00e1ch b\u1ea3o m\u1eadt credentials v\u00e0 API key trong n8n<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">MCP kh\u00f4ng c\u1ea7n thi\u1ebft khi \u1ee9ng d\u1ee5ng ch\u1ec9 g\u1ecdi m\u1ed9t API c\u1ed1 \u0111\u1ecbnh, lu\u1ed3ng x\u1eed l\u00fd kh\u00f4ng \u0111\u1ed5i v\u00e0 kh\u00f4ng c\u00f3 AI t\u1ef1 ch\u1ecdn c\u00f4ng c\u1ee5: g\u1ecdi API tr\u1ef1c ti\u1ebfp v\u1eabn \u0111\u01a1n gi\u1ea3n, d\u1ec5 g\u1ee1 l\u1ed7i h\u01a1n. V\u1edbi t\u00e1c v\u1ee5 c\u1ea7n \u0111\u1ed9 tr\u1ec5 r\u1ea5t th\u1ea5p ho\u1eb7c kh\u1ed1i l\u01b0\u1ee3ng l\u1edbn, m\u1ed7i l\u1edbp trung gian th\u00eam v\u00e0o c\u0169ng l\u00e0 th\u00eam m\u1ed9t \u0111i\u1ec3m c\u1ea7n gi\u00e1m s\u00e1t.<\/p>\n\n\n\n<h2 id=\"V\u00ed_d\u1ee5:_t\u1ea1o_MCP_server_v\u00e0_MCP_client_trong_n8n\">V\u00ed d\u1ee5: t\u1ea1o MCP server v\u00e0 MCP client trong n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5 d\u01b0\u1edbi \u0111\u00e2y d\u00f9ng hai workflow n8n: workflow th\u1ee9 nh\u1ea5t l\u00e0 MCP server, c\u00f4ng khai m\u1ed9t workflow sao l\u01b0u credential th\u00e0nh tool; workflow th\u1ee9 hai l\u00e0 AI agent c\u00f3 MCP client, nh\u1eadn l\u1ec7nh qua khung chat r\u1ed3i g\u1ecdi tool \u0111\u00f3. Giao di\u1ec7n n8n trong \u1ea3nh ch\u1ee5p th\u00e1ng 07\/2025, phi\u00ean b\u1ea3n m\u1edbi c\u00f3 th\u1ec3 \u0111\u00e3 \u0111\u1ed5i.<\/p>\n\n\n\n<h3 id=\"C\u1ea5u_h\u00ecnh_MCP_Server\">C\u1ea5u h\u00ecnh MCP Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> B\u1ea1n t\u1ea1o m\u1ed9t workflow m\u1edbi v\u00e0 th\u00eam node <strong>MCP Server Trigger<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1288\" height=\"718\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-1.png\" alt=\"C\u1ea5u h\u00ecnh MCP Server\" class=\"wp-image-116799\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-1.png 1288w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-1-300x167.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-1-1024x571.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-1-768x428.png 768w\" sizes=\"(max-width: 1288px) 100vw, 1288px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> Nh\u1ea5n v\u00e0o d\u1ea5u <strong>+<\/strong> \u1edf m\u1ee5c <strong>Tools<\/strong> r\u1ed3i ch\u1ecdn <strong>Call n8n Workflow Tool<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1421\" height=\"762\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-2.png\" alt=\"C\u1ea5u h\u00ecnh MCP Server\" class=\"wp-image-116800\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-2.png 1421w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-2-300x161.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-2-1024x549.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-2-768x412.png 768w\" sizes=\"(max-width: 1421px) 100vw, 1421px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ea5u h\u00ecnh nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Description: <\/strong>Nh\u1eadp m\u00f4 t\u1ea3 cho tool<\/li>\n\n\n<li><strong>Source:<\/strong> Ch\u1ecdn<strong> Database<\/strong><\/li>\n\n\n<li><strong>Workflow<\/strong>: Ch\u1ecdn workflow c\u1ea7n g\u1ecdi.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1322\" height=\"784\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-3.png\" alt=\"C\u1ea5u h\u00ecnh MCP Server\" class=\"wp-image-116801\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-3.png 1322w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-3-300x178.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-3-1024x607.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-3-768x455.png 768w\" sizes=\"(max-width: 1322px) 100vw, 1322px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>L\u01b0u \u00fd:<\/strong> B\u1ea1n c\u1ea7n th\u00eam node <strong>Execute Workflow trigger <\/strong>\u1edf \u0111\u1ea7u workflow mu\u1ed1n g\u1ecdi. V\u00ed d\u1ee5: Tino s\u1ebd g\u1ecdi workflow \u201cbackup credential\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1503\" height=\"660\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-4.png\" alt=\"Workflow backup credential b\u1eaft \u0111\u1ea7u b\u1eb1ng Execute Workflow Trigger\" class=\"wp-image-116802\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-4.png 1503w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-4-300x132.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-4-1024x450.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-4-768x337.png 768w\" sizes=\"(max-width: 1503px) 100vw, 1503px\" \/><figcaption class=\"wp-element-caption\">Workflow \u0111\u01b0\u1ee3c g\u1ecdi b\u1eaft \u0111\u1ea7u b\u1eb1ng node Execute Workflow Trigger<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ngo\u00e0i ra, b\u1ea1n c\u00f3 th\u1ec3 th\u00eam nhi\u1ec1u tool c\u00f9ng l\u00fac v\u00e0o MCP Server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> M\u1edf node MCP Server. T\u1ea1i m\u1ee5c <strong>MCP URL<\/strong>, b\u1ea1n s\u1ebd ch\u1ecdn:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Test URL:<\/strong> N\u1ebfu \u0111ang th\u1eed nghi\u1ec7m.<\/li>\n\n\n<li><strong>Production URL:<\/strong> Khi MCP Server \u0111\u00e3 \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Copy 1 trong 2 \u0111\u01b0\u1eddng link n\u00e0y.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1175\" height=\"714\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-5-che.webp\" alt=\"Node MCP Server Trigger trong n8n v\u1edbi m\u1ee5c MCP URL, Authentication v\u00e0 Path\" class=\"wp-image-132918\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-5-che.webp 1175w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-5-che-300x182.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-5-che-1024x622.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-5-che-768x467.webp 768w\" sizes=\"(max-width: 1175px) 100vw, 1175px\" \/><figcaption class=\"wp-element-caption\">\u0110\u00e3 che ph\u1ea7n m\u00e3 \u0111\u1ecbnh danh trong URL v\u00e0 Path c\u1ee7a m\u00e1y ch\u1ee7 demo<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1ea1i m\u1ee5c <strong>Authentication<\/strong>, n\u00ean ch\u1ecdn Bearer ho\u1eb7c Header auth khi d\u00f9ng Production URL; <strong>None<\/strong> ch\u1ec9 n\u00ean d\u00f9ng l\u00fac th\u1eed nghi\u1ec7m n\u1ed9i b\u1ed9. Theo <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-langchain.mcptrigger\/\" target=\"_blank\" rel=\"noopener nofollow\">t\u00e0i li\u1ec7u n8n<\/a>, node n\u00e0y h\u1ed7 tr\u1ee3 SSE v\u00e0 Streamable HTTP, kh\u00f4ng h\u1ed7 tr\u1ee3 stdio.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4: <\/strong>L\u01b0u workflow hi\u1ec7n t\u1ea1i.<\/p>\n\n\n\n<h3 id=\"C\u1ea5u_h\u00ecnh_MCP_Client\">C\u1ea5u h\u00ecnh MCP Client<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1: <\/strong>T\u1ea1o m\u1ed9t workflow m\u1edbi v\u00e0 th\u00eam node <strong>On chat Message<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1236\" height=\"716\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-6.png\" alt=\"C\u1ea5u h\u00ecnh MCP Client\" class=\"wp-image-116804\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-6.png 1236w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-6-300x174.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-6-1024x593.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-6-768x445.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Client<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2: <\/strong>Th\u00eam node <strong>AI Agent<\/strong> v\u00e0 c\u1ea5u h\u00ecnh:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Source for Prompt (User Message) <\/strong>-&gt; Ch\u1ecdn <strong>Connected Chat Trigger Node <\/strong>\u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u t\u1eeb node<strong> On chat Message<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1466\" height=\"795\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-7.png\" alt=\"C\u1ea5u h\u00ecnh MCP Client\" class=\"wp-image-116805\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-7.png 1466w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-7-300x163.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-7-1024x555.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-7-768x416.png 768w\" sizes=\"(max-width: 1466px) 100vw, 1466px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Client<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1158\" height=\"596\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-8.png\" alt=\"AI Agent trong n8n n\u1ed1i Google Gemini Chat Model v\u00e0 MCP Client\" class=\"wp-image-116806\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-8.png 1158w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-8-300x154.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-8-1024x527.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-8-768x395.png 768w\" sizes=\"(max-width: 1158px) 100vw, 1158px\" \/><figcaption class=\"wp-element-caption\">Node AI Agent n\u1ed1i Google Gemini Chat Model v\u00e0 MCP Client<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Model: <\/strong>Tino s\u1ebd ch\u1ecdn Gemini. Tham kh\u1ea3o b\u00e0i vi\u1ebft: <a href=\"https:\/\/tino.vn\/blog\/cach-lay-api-key-cua-google-gemini\/\">H\u01b0\u1edbng d\u1eabn c\u00e1ch l\u1ea5y API Key c\u1ee7a Google Gemini \u0111\u1ec3 s\u1eed d\u1ee5ng trong n8n<\/a><\/li>\n\n\n<li><strong>Tool: <\/strong>Ch\u1ecdn <strong>MCP Client Tool<\/strong>. Khi node n\u00e0y \u0111\u01b0\u1ee3c m\u1edf, b\u1ea1n s\u1ebd d\u00e1n <strong>Test URL<\/strong>\/<strong>Production URL<\/strong> \u0111\u00e3 copy \u1edf ph\u1ea7n c\u1ea5u h\u00ecnh MCP Server v\u00e0o \u00f4 endpoint (b\u1ea3n ch\u1ee5p ghi <strong>SSE Endpoint<\/strong>), ch\u1ecdn ki\u1ec3u x\u00e1c th\u1ef1c kh\u1edbp v\u1edbi MCP Server. C\u00f2n l\u1ea1i, b\u1ea1n c\u00f3 th\u1ec3 gi\u1eef m\u1eb7c \u0111\u1ecbnh.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1534\" height=\"825\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-9-che.webp\" alt=\"Node MCP Client trong n8n, \u00f4 SSE Endpoint \u0111\u00e3 d\u00e1n URL c\u1ee7a MCP Server\" class=\"wp-image-132919\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-9-che.webp 1534w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-9-che-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-9-che-1024x551.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/word-image-116798-9-che-768x413.webp 768w\" sizes=\"(max-width: 1534px) 100vw, 1534px\" \/><figcaption class=\"wp-element-caption\">\u0110\u00e3 che ph\u1ea7n m\u00e3 \u0111\u1ecbnh danh trong URL endpoint<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u1ea5n <strong>Save<\/strong> \u0111\u1ec3 l\u01b0u workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3: <\/strong>L\u00fac n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 g\u1ecdi workflow \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh s\u1eb5n trong MCP Server t\u1eeb MCP Client b\u1eb1ng c\u00e1ch m\u1edf c\u1eeda s\u1ed5 chat (Open Chat) r\u1ed3i nh\u1eadp y\u00eau c\u1ea7u.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1665\" height=\"902\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10.png\" alt=\"C\u1ea5u h\u00ecnh MCP Client\" class=\"wp-image-116808\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10.png 1665w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10-300x163.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10-1024x555.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10-768x416.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-10-1536x832.png 1536w\" sizes=\"(max-width: 1665px) 100vw, 1665px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Client<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">K\u1ebft qu\u1ea3:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1660\" height=\"824\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11.png\" alt=\"C\u1ea5u h\u00ecnh MCP Client\" class=\"wp-image-116809\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11.png 1660w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11-300x149.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11-1024x508.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11-768x381.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-11-1536x762.png 1536w\" sizes=\"(max-width: 1660px) 100vw, 1660px\" \/><figcaption class=\"wp-element-caption\">C\u1ea5u h\u00ecnh MCP Client<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1173\" height=\"659\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-12.png\" alt=\"Th\u01b0 m\u1ee5c Backup tr\u00ean Google Drive ch\u1ee9a t\u1ec7p credential v\u1eeba sao l\u01b0u\" class=\"wp-image-116810\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-12.png 1173w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-12-300x169.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-12-1024x575.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116798-12-768x431.png 768w\" sizes=\"(max-width: 1173px) 100vw, 1173px\" \/><figcaption class=\"wp-element-caption\">T\u1ec7p credential \u0111\u01b0\u1ee3c sao l\u01b0u v\u00e0o Google Drive<\/figcaption><\/figure>\n\n\n\n<h3 id=\"Khi_n\u00e0o_c\u1ea7n_d\u00f9ng_MCP_trong_n8n?\">Khi n\u00e0o c\u1ea7n d\u00f9ng MCP trong n8n?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n n\u00ean s\u1eed d\u1ee5ng MCP trong n8n trong c\u00e1c tr\u01b0\u1eddng h\u1ee3p sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Khi mu\u1ed1n AI ch\u1ee7 \u0111\u1ed9ng khai th\u00e1c v\u00e0 \u0111i\u1ec1u khi\u1ec3n workflow:<\/strong> N\u1ebfu b\u1ea1n c\u1ea7n AI Agent (nh\u01b0 <a href=\"https:\/\/tino.vn\/blog\/claude-ai-la-gi\/\">Claude<\/a>, GPT, &#8230;) t\u1ef1 \u0111\u1ed9ng truy xu\u1ea5t, ph\u00e2n t\u00edch d\u1eef li\u1ec7u, ho\u1eb7c th\u1ef1c hi\u1ec7n h\u00e0nh \u0111\u1ed9ng tr\u00ean nhi\u1ec1u c\u00f4ng c\u1ee5 m\u00e0 kh\u00f4ng c\u1ea7n c\u1ea5u h\u00ecnh th\u1ee7 c\u00f4ng t\u1eebng b\u01b0\u1edbc, MCP ph\u00f9 h\u1ee3p.<\/li>\n\n\n<li><strong>Khi c\u1ea7n t\u00edch h\u1ee3p nhi\u1ec1u c\u00f4ng c\u1ee5\/ph\u1ea7n m\u1ec1m kh\u00e1c nhau:<\/strong> MCP ph\u00f9 h\u1ee3p khi workflow c\u1ee7a b\u1ea1n c\u1ea7n k\u1ebft n\u1ed1i v\u1edbi nhi\u1ec1u d\u1ecbch v\u1ee5, API ho\u1eb7c h\u1ec7 th\u1ed1ng kh\u00e1c nhau m\u00e0 kh\u00f4ng mu\u1ed1n m\u1ea5t th\u1eddi gian x\u00e2y d\u1ef1ng t\u1eebng connector ri\u00eang bi\u1ec7t.<\/li>\n\n\n<li><strong>Khi x\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng linh ho\u1ea1t, d\u1ec5 m\u1edf r\u1ed9ng:<\/strong> N\u1ebfu b\u1ea1n mu\u1ed1n workflow c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng b\u1ed5 sung c\u00f4ng c\u1ee5 m\u1edbi ho\u1eb7c thay \u0111\u1ed5i m\u00e0 kh\u00f4ng \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn to\u00e0n b\u1ed9 h\u1ec7 th\u1ed1ng, h\u00e3y d\u00f9ng MCP \u0111\u1ec3 t\u1eadn d\u1ee5ng t\u00ednh m\u1edf r\u1ed9ng v\u00e0 chu\u1ea9n h\u00f3a c\u1ee7a giao th\u1ee9c n\u00e0y.<\/li>\n\n\n<li><strong>Khi ph\u00e1t tri\u1ec3n c\u00e1c \u1ee9ng d\u1ee5ng AI \u0111a nhi\u1ec7m, \u0111a t\u00e1c v\u1ee5:<\/strong> MCP cho ph\u00e9p x\u00e2y d\u1ef1ng c\u00e1c AI agent c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n nhi\u1ec1u t\u00e1c v\u1ee5 kh\u00e1c nhau nh\u01b0 g\u1eedi email, truy xu\u1ea5t API, x\u1eed l\u00fd d\u1eef li\u1ec7u, h\u1ed7 tr\u1ee3 kh\u00e1ch h\u00e0ng,&#8230; ch\u1ec9 v\u1edbi m\u1ed9t c\u1ea5u h\u00ecnh chung, ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 c\u00f4ng s\u1ee9c.<\/li>\n\n\n<li><strong>Khi c\u1ea7n x\u00e2y d\u1ef1ng workflow cho c\u00e1c k\u1ecbch b\u1ea3n ph\u1ee9c t\u1ea1p: <\/strong>V\u00ed d\u1ee5: T\u1ef1 \u0111\u1ed9ng g\u1eedi email t\u00f9y ch\u1ec9nh, truy xu\u1ea5t v\u00e0 x\u1eed l\u00fd d\u1eef li\u1ec7u t\u1eeb API, x\u00e2y d\u1ef1ng tr\u1ee3 l\u00fd gi\u1ecdng n\u00f3i AI, ho\u1eb7c c\u00e1c h\u1ec7 th\u1ed1ng h\u1ed7 tr\u1ee3 kh\u00e1ch h\u00e0ng \u0111a k\u00eanh\u2014MCP gi\u00fap t\u00e1ch ph\u1ea7n c\u00f4ng c\u1ee5 kh\u1ecfi ph\u1ea7n agent n\u00ean d\u1ec5 th\u00eam k\u00eanh m\u1edbi.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Mu\u1ed1n t\u1ef1 host n8n \u0111\u1ec3 ch\u1ea1y MCP server 24\/7 m\u00e0 kh\u00f4ng t\u1ef1 c\u00e0i? <a href=\"https:\/\/tino.vn\/vps-n8n\" target=\"_blank\" rel=\"noopener\">VPS n8n c\u1ee7a Tino<\/a> c\u00e0i s\u1eb5n n8n tr\u00ean VPS NVMe \u0111\u1eb7t t\u1ea1i Vi\u1ec7t Nam. Xem c\u1ea5u h\u00ecnh v\u00e0 gi\u00e1 tr\u00ean trang s\u1ea3n ph\u1ea9m. C\u1ea7n ch\u1ea1y agent c\u00e1 nh\u00e2n thay v\u00ec workflow, xem <a href=\"https:\/\/tino.vn\/blog\/vps-chay-ai-agent\/\">ch\u1ecdn VPS ch\u1ea1y AI agent<\/a>.<\/p>\n\n\n\n<h2 id=\"C\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Nh\u1eefng_\u1ee9ng_d\u1ee5ng_n\u00e0o_d\u00f9ng_\u0111\u01b0\u1ee3c_MCP?\">Nh\u1eefng \u1ee9ng d\u1ee5ng n\u00e0o d\u00f9ng \u0111\u01b0\u1ee3c MCP?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">M\u1ecdi \u1ee9ng d\u1ee5ng c\u00f3 MCP client \u0111\u1ec1u d\u00f9ng \u0111\u01b0\u1ee3c MCP server, v\u00ed d\u1ee5 <a href=\"https:\/\/tino.vn\/blog\/claude-ai-la-gi\/\">Claude<\/a> (\u1ee9ng d\u1ee5ng desktop v\u00e0 Claude Code), <a href=\"https:\/\/cursor.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Cursor<\/a> v\u00e0 n8n. Danh s\u00e1ch thay \u0111\u1ed5i li\u00ean t\u1ee5c, n\u00ean ki\u1ec3m trang t\u00e0i li\u1ec7u c\u1ee7a t\u1eebng \u1ee9ng d\u1ee5ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_th\u1ec3_t\u1ef1_host_MCP_Server_kh\u00f4ng_hay_ph\u1ea3i_d\u00f9ng_d\u1ecbch_v\u1ee5_cloud?\">C\u00f3 th\u1ec3 t\u1ef1 host MCP Server kh\u00f4ng hay ph\u1ea3i d\u00f9ng d\u1ecbch v\u1ee5 cloud?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3. MCP server c\u1ee5c b\u1ed9 ch\u1ea1y ngay tr\u00ean m\u00e1y t\u00ednh; server t\u1eeb xa c\u00f3 th\u1ec3 \u0111\u1eb7t tr\u00ean <a href=\"https:\/\/tino.vn\/blog\/vps-la-gi\/\">VPS<\/a> ho\u1eb7c d\u1ecbch v\u1ee5 cloud, mi\u1ec5n l\u00e0 c\u00f3 HTTPS, x\u00e1c th\u1ef1c v\u00e0 \u0111\u1ee7 t\u00e0i nguy\u00ean cho t\u00e1c v\u1ee5.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"MCP_c\u00f3_m\u1ea5t_ph\u00ed_kh\u00f4ng?\">MCP c\u00f3 m\u1ea5t ph\u00ed kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">B\u1ea3n th\u00e2n \u0111\u1eb7c t\u1ea3 MCP v\u00e0 c\u00e1c SDK ch\u00ednh th\u1ee9c l\u00e0 m\u00e3 ngu\u1ed3n m\u1edf, kh\u00f4ng thu ph\u00ed. Chi ph\u00ed th\u01b0\u1eddng \u0111\u1ebfn t\u1eeb model AI g\u1ecdi qua API (t\u00ednh theo token) v\u00e0 m\u00e1y ch\u1ee7 ch\u1ea1y MCP server; xem <a href=\"https:\/\/tino.vn\/blog\/phan-biet-chat-voi-token-credit-cua-ai\/\">c\u00e1ch t\u00ednh token v\u00e0 credit c\u1ee7a AI<\/a>.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u1ea1i_sao_t\u00f4i_b\u1ecb_l\u1ed7i_\u201cMissing_node_to_start_execution\u201d_khi_g\u1ecdi_workflow_t\u1eeb_MCP_Server?\">T\u1ea1i sao t\u00f4i b\u1ecb l\u1ed7i \u201cMissing node to start execution\u201d khi g\u1ecdi workflow t\u1eeb MCP Server?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">V\u00ec workflow b\u1ea1n mu\u1ed1n g\u1ecdi kh\u00f4ng c\u00f3 trigger ph\u00f9 h\u1ee3p. B\u1ea1n c\u1ea7n th\u00eam node Execute Workflow Trigger v\u00e0 \u0111\u1ea3m b\u1ea3o node \u0111\u00f3 \u0111ang \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Nh\u1eefng \u1ee9ng d\u1ee5ng n\u00e0o d\u00f9ng \u0111\u01b0\u1ee3c MCP?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>M\u1ecdi \u1ee9ng d\u1ee5ng c\u00f3 MCP client \u0111\u1ec1u d\u00f9ng \u0111\u01b0\u1ee3c MCP server, v\u00ed d\u1ee5 <a>Claude<\/a> (\u1ee9ng d\u1ee5ng desktop v\u00e0 Claude Code), <a>Cursor<\/a> v\u00e0 n8n. Danh s\u00e1ch thay \u0111\u1ed5i li\u00ean t\u1ee5c, n\u00ean ki\u1ec3m trang t\u00e0i li\u1ec7u c\u1ee7a t\u1eebng \u1ee9ng d\u1ee5ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 th\u1ec3 t\u1ef1 host MCP Server kh\u00f4ng hay ph\u1ea3i d\u00f9ng d\u1ecbch v\u1ee5 cloud?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. MCP server c\u1ee5c b\u1ed9 ch\u1ea1y ngay tr\u00ean m\u00e1y t\u00ednh; server t\u1eeb xa c\u00f3 th\u1ec3 \u0111\u1eb7t tr\u00ean <a>VPS<\/a> ho\u1eb7c d\u1ecbch v\u1ee5 cloud, mi\u1ec5n l\u00e0 c\u00f3 HTTPS, x\u00e1c th\u1ef1c v\u00e0 \u0111\u1ee7 t\u00e0i nguy\u00ean cho t\u00e1c v\u1ee5.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"MCP c\u00f3 m\u1ea5t ph\u00ed kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>B\u1ea3n th\u00e2n \u0111\u1eb7c t\u1ea3 MCP v\u00e0 c\u00e1c SDK ch\u00ednh th\u1ee9c l\u00e0 m\u00e3 ngu\u1ed3n m\u1edf, kh\u00f4ng thu ph\u00ed. Chi ph\u00ed th\u01b0\u1eddng \u0111\u1ebfn t\u1eeb model AI g\u1ecdi qua API (t\u00ednh theo token) v\u00e0 m\u00e1y ch\u1ee7 ch\u1ea1y MCP server; xem <a>c\u00e1ch t\u00ednh token v\u00e0 credit c\u1ee7a AI<\/a>.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u1ea1i sao t\u00f4i b\u1ecb l\u1ed7i \u201cMissing node to start execution\u201d khi g\u1ecdi workflow t\u1eeb MCP Server?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>V\u00ec workflow b\u1ea1n mu\u1ed1n g\u1ecdi kh\u00f4ng c\u00f3 trigger ph\u00f9 h\u1ee3p. B\u1ea1n c\u1ea7n th\u00eam node Execute Workflow Trigger v\u00e0 \u0111\u1ea3m b\u1ea3o node \u0111\u00f3 \u0111ang \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>MCP (Model Context Protocol) l\u00e0 giao th\u1ee9c m\u1edf gi\u00fap \u1ee9ng d\u1ee5ng AI k\u1ebft n\u1ed1i v\u1edbi c\u00f4ng c\u1ee5, d\u1eef li\u1ec7u v\u00e0 h\u1ec7 th\u1ed1ng b\u00ean ngo\u00e0i theo m\u1ed9t chu\u1ea9n chung, thay v\u00ec ph\u1ea3i vi\u1ebft m\u1ed9t t\u00edch h\u1ee3p ri\u00eang cho t\u1eebng d\u1ecbch v\u1ee5. Anthropic c\u00f4ng b\u1ed1 MCP ng\u00e0y 25\/11\/2024 (th\u00f4ng b\u00e1o g\u1ed1c); nh\u1edd MCP, m\u1ed9t AI agent c\u00f3 [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":116815,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-116798","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=116798"}],"version-history":[{"count":7,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116798\/revisions"}],"predecessor-version":[{"id":133071,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116798\/revisions\/133071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/116815"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=116798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=116798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=116798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}