<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9" -->

---
title: &quot;I made an Evil MCP server&quot; (and AI fell for it) | daily.dev
description: A security researcher demonstrates critical vulnerabilities in the Model Context Protocol (MCP) by creating a malicious MCP server that successfully tricks AI...
canonical: https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: &quot;I made an Evil MCP server&quot; (and AI fell for it) | daily.dev
og:description: A security researcher demonstrates critical vulnerabilities in the Model Context Protocol (MCP) by creating a malicious MCP server that successfully tricks AI...
og:url: https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9
og:image: https://api.daily.dev/og/posts/xMpwqhHm9.png
og:image:alt: &quot;I made an Evil MCP server&quot; (and AI fell for it)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# "I made an Evil MCP server" (and AI fell for it)

**[John Hammond](https://daily.dev/sources/johnhammond)** · 31 min read · 31 upvotes · 0 comments

## Summary

A security researcher demonstrates critical vulnerabilities in the Model Context Protocol (MCP) by creating a malicious MCP server that successfully tricks AI models into leaking sensitive data and injecting security vulnerabilities into code. The demonstration shows how Gemini 3 Pro falls for prompt injection attacks through MCP tools, exfiltrating prompts, code, and secrets while actively hiding malicious code changes from users. The researcher argues MCP is fundamentally insecure because it allows arbitrary prompt injection with no reliable defense, whether running locally or remotely. Claude Opus showed better resistance by recognizing the malicious intent, but the overall MCP ecosystem remains vulnerable to data exfiltration and code execution attacks through compromised or malicious servers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=_r_sLetar_o>

## Similar posts on daily.dev

- [MCP Security: Understanding Vulnerabilities in Model Context Protocol](https://daily.dev/posts/mcp-security-understanding-vulnerabilities-in-model-context-protocol-hcscknky1) · marmelab · 4 upvotes · 0 comments
- [The MCP Trojan Horse: AI’s Hidden Security Risk](https://daily.dev/posts/the-mcp-trojan-horse-ai-s-hidden-security-risk-rusv4bvym) · JFrog · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#golang](https://daily.dev/tags/golang), [#mcp](https://daily.dev/tags/mcp), [#ai-security](https://daily.dev/tags/ai-security), [#prompt-injection](https://daily.dev/tags/prompt-injection)

[View this post on daily.dev](https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"\"I made an Evil MCP server\" (and AI fell for it)","url":"https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9"},"datePublished":"2026-01-21T14:20:12.748Z","dateModified":"2026-01-21T14:20:40.460Z","description":"A security researcher demonstrates critical vulnerabilities in the Model Context Protocol (MCP) by creating a malicious MCP server that successfully tricks AI...","image":"https://i.ytimg.com/vi/_r_sLetar_o/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/_r_sLetar_o/sddefault.jpg","isAccessibleForFree":true,"articleSection":"John Hammond","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"John Hammond","logo":"https://media.daily.dev/image/upload/s--Oh7b_KW---/f_auto/v1729363281/logos/johnhammond","url":"https://daily.dev/sources/johnhammond"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-made-an-evil-mcp-server-and-ai-fell-for-it--xmpwqhhm9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":31},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,golang,mcp,ai-security,prompt-injection","timeRequired":"PT31M","video":{"@type":"VideoObject","name":"\"I made an Evil MCP server\" (and AI fell for it)","description":"A security researcher demonstrates critical vulnerabilities in the Model Context Protocol (MCP) by creating a malicious MCP server that successfully tricks AI...","thumbnailUrl":"https://i.ytimg.com/vi/_r_sLetar_o/sddefault.jpg","uploadDate":"2026-01-21T14:20:12.748Z","duration":"PT31M","url":"https://api.daily.dev/r/xMpwqhHm9","embedUrl":"https://www.youtube.com/embed/_r_sLetar_o"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"John Hammond","item":"https://daily.dev/sources/johnhammond"},{"@type":"ListItem","position":3,"name":"\"I made an Evil MCP server\" (and AI fell for it)"}]}
```

