MCP Shield

Trust Nothing. Verify Everything.

Visit Repo
MCP Shield banner

About

## Challenges we ran into

## Challenges We Ran Into

One of our biggest challenges was figuring out how to intercept MCP tool calls without breaking the normal communication between MCP clients and servers.

MCP uses JSON-RPC over transports such as stdio, so introducing a security layer meant ensuring that requests and responses could be inspected without interfering with the protocol.

We tackled this by building an MCP proxy that sits between the client and server, allowing us to inspect tool inputs and outputs before they reach their destination.

Another major challenge was **prompt injection through external content**. A GitHub issue or document might contain malicious instructions that an AI agent could interpret as trusted commands. We worked on a taint-tracking mechanism to identify untrusted content and track its influence on subsequent tool executions.

We also faced challenges in protecting sensitive files without disrupting legitimate workflows. Our honey-token approach helped address this by serving decoy credentials instead of real secrets and using those tokens to detect suspicious activity.

Finally, connecting the security engine, approval workflow, SQLite event tracking, and React dashboard into one working system required careful coordination between the backend and frontend.

**What we learned:** Building AI security is not just about detecting malicious prompts. It is about controlling what happens when an AI agent interacts with the real world, while keeping legitimate workflows functional.

## The problem it solves

## The Problem It Solves

AI assistants and agents use MCP (Model Context Protocol) to interact with external tools, files, APIs, databases, and development environments. However, these connections introduce security risks: malicious instructions hidden in GitHub issues, documentation, or other external content can manipulate an AI agent into exposing sensitive data or executing unauthorized actions.

**MCP-Shield** helps protect developers and their environments by adding a zero-trust security layer between MCP clients and MCP servers.

It makes AI-powered workflows safer by providing:

  • **Tool Pinning:** Controls which MCP tools are permitted to execute.
  • **Shadow Copy:** Tracks untrusted external content and its influence on agent actions.
  • **Offline Sandbox:** Isolates risky operations from the customer's real environment.
  • **Honey-Token Deception:** Replaces protected secrets with decoy credentials to detect unauthorized access.
  • **Exit-Door Freeze:** Blocks suspicious actions when honey-tokens or other security traps are triggered.
  • **Human Approval:** Allows sensitive operations to be reviewed before execution.

MCP-Shield helps developers use AI agents with greater confidence while reducing the risk of prompt injection, secret exposure, and unauthorized tool execution.

**In short:** MCP-Shield acts as a security firewall for MCP-powered AI agents, helping protect your tools, files, credentials, and development environment.

Screenshots

MCP Shield screenshot 1

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Proofmark

A trust gate for AI agents: verify who backs an MCP server, pay on Hedera, block tools that change