🧠 Inspiration
As AI tools grow more capable, their usefulness increasingly depends on access to real-world context: tools, data, and resources that give their answers meaning. Yet in critical sectors like healthcare, finance, and energy, granting this access is risky and complex. Privacy concerns, regulatory constraints, and the lack of standardized access control mechanisms have made organizations hesitant to open up their systems.
I was inspired by this fundamental question: Can we create a system where AI can access external context responsibly, without compromising privacy, security, or control?
As a researcher, I spend much of my time thinking about trust in digital ecosystems how we can design systems that are accountable, secure, and aligned with human values. Often, we come up with brilliant theoretical solutions, but they never quite become tangible. Not because the ideas lack merit, but because building real applications takes time, effort, and infrastructure.
That’s no longer an excuse.
With modern platforms like bolt.new, the barriers to turning research into product are rapidly disappearing. Bolt handled the infrastructure, deployment, and front-end integration—freeing me to focus on what mattered: solving the core challenge.
When Anthropic introduced the Model Context Protocol (MCP), I saw a clear path forward. And with Bolt’s rapid development environment, I set out to build Ctx Guard, a platform for secure, policy-enforced access to AI-relevant resources. It allows organizations to expose context without losing control, and lets AI systems consume that context responsibly and transparently.
That’s how Ctx Guard came to life from a research idea to a real, working system.
🔧 What it does
Ctx Guard is a trust and policy layer for connecting AI systems to external tools and data sources. It enables:
- Context Providers (e.g., hospitals, research labs, enterprises) to register and configure their resources
- AI agents to discover, purchase, and interact with these resources in a privacy-preserving, rule-compliant way
- Smart contract-based enforcement of privacy policies, pricing models, and access restrictions
- Blockchain-backed transparency using Algorand and IPFS for metadata immutability and discoverability -Wallet-based identity and payments using Algorand Based Wallet for secure transactions
In short, Ctx Guard empowers responsible AI by making context accessible securely, transparently, and on the provider's terms.
🏗️ How I built it
I built Ctx Guard web apps entirely on the Bolt platform, using its developer tools and Netlify integration for fast, seamless development and deployment.
The system includes two web apps:
🔧 A Context Provider dashboard for configuring, pricing, and publishing resources with policy controls
🤖 An AI Chat Interface that lets agents securely discover and interact with those resources
To power secure AI-context interactions, I extended the Model Context Protocol (MCP) with:
- A Super MCP Server that acts as a trusted gateway for enforcing access and policies
- Dynamically generated smart contracts tailored to provider-defined rules
- One-click deployment to Algorand, hiding blockchain complexity
- IPFS for decentralized metadata storage
- Pera Wallet integration for identity and payments
- An AI agent that interacts with context while respecting privacy constraints
🚧 Challenges I ran into
This wasn’t just a prototype; it was a real attempt to build something serious, secure, and standards-aligned in a short time. That meant I hit a few big challenges:
Building on Algorand: This was my first time doing a full-stack project with smart contract deployment on Algorand. Thankfully, attending their Web3 Masterclass Bootcamp last month gave me a solid head start and helped us move fast with the right tools and concepts.
Working with MCP: The Model Context Protocol (MCP) is new, evolving, and barely documented. I had to "butcher" my way through its SDKs and workflows, and even the best AI models struggled to help with specifics. It took hands-on experimentation to make it work in the wild.
Bridging Legal + Technical Contracts: Designing smart contracts that reflect** legal agreements, privacy policies, and pricing models** while still being machine-readable and enforceable was a major challenge. I had to find creative ways to express complex rules in code without overwhelming the user experience.
Enforcement & Compliance Logic: Even after policies were created, ensuring AI agents actually adhere to restrictions like row-level access or personal data filtering was a tough technical and architectural problem. (And there are lot of challenges to be addressed here for the future)
🏅 Accomplishments that I'm proud of
Built a fully working Context Guard prototype integrated with real MCP servers (without UX, Front End or AI experts)
Implemented end-to-end access flows with smart contract deployment, wallet-based payments, and dynamic context querying
Designed a flexible policy model to enforce privacy controls such as personal data protection and access limitations, while supporting monetizable smart contracts for secure context sharing.
Demonstrated live integration with an AI agent that adapts its behavior based on policy-compliant access
📚 What I learned
I learned that enabling AI to interact with external context isn’t just about connection; it’s about governance.
Standards like MCP are crucial for interoperability
Smart contracts and IPFS can create trust and auditability
Privacy must be enforced by design, not just by policy
And most importantly: responsible AI needs infrastructure, not just intelligence
🔮 What's next for Ctx Guard
I'm not stopping here. What started as a hackathon project is now shaping up to become a sophisticated platform, one with real potential as the foundation for a future startup.
There are still core research challenges to solve, especially around policy enforcement, context auditing, and real-time agent compliance. These aren't just technical problems; they touch law, ethics, and governance in the age of AI.
My goal is to take Ctx Guard from prototype to production-ready, building a full ecosystem for:
Developers to build policy-aware AI agents
Enterprises to safely expose tools and resources
Providers to earn from their contributions
End users to trust the AI systems they rely on
I believe Ctx Guard is laying the groundwork for a future where humans and AI collaborate through context, with trust, accountability, and shared value.
Built With
- algorand
- bolt
- fatsapi
- mcp
- python
- vuejs

Log in or sign up for Devpost to join the conversation.