SEP-2395: MCPS — Cryptographic Security Layer for MCP#2395
Conversation
Proposes MCPS (MCP Secure), a cryptographic envelope for MCP communications providing agent identity (passports), per-message signing, tool definition integrity, and replay protection. Addresses MCP's lack of message-level security: - 41% of MCP servers have zero authentication (TapAuth research) - CVE-2025-6514 (CVSS 9.6) demonstrated tool poisoning RCE - 13 of 39 agent frameworks failed OWASP Agentic AI assessment Key design principles: - Fully backward-compatible (envelope model, not schema change) - Self-hostable Trust Authority (no external dependency) - Progressive trust levels L0-L4 - ECDSA P-256 (FIPS 186-4 compliant) Reference implementations: npm and PyPI (mcp-secure) Seeking sponsor from Security IG / Server Identity WG.
|
Thanks @localden -- appreciate the guidance. You're right that the current draft leans too heavily on a specific implementation rather than proposing at the spec level. I'll rework this as a pure protocol-level proposal following the SEP-1850 workflow -- focusing on the cryptographic primitives (identity, signing, trust levels) that MCP needs, without tying it to any specific project. I noticed this aligns closely with the Security Interest Group and Server Identity Working Group scope. Happy to contribute through those channels if that's a better path for this kind of proposal. Will push an updated draft shortly. |
- Rename to seps/2395-* per SEP-1850 naming convention - Strip product references and package links - Focus on cryptographic primitives: identity, signing, trust levels - Reduce reference implementation to minimal repo links - Remove interactive demo section
|
Thanks for your contribution, @razashariff. Appreciate the time to write this out. Few call-outs here that I want to see what others think about. I'll be upfront that as with anything that involves cryptography, I am a bit skeptical of any bespoke/custom solutions that are not validated by the industry at large. For example, I am not sure why this would be better than applying DPoP at the authorization layer. There are also some major issues from an engineering perspective that I think ultimately block this. A few worth noting here:
I also have some issues with the mentioned claims.
As it stands today, I don't see how we can consider something like this for the protocol (even on the extension path). @pcarleton @jenn-newton @PieterKas @D-McAdams would be curious what you think here. |
|
Thanks @localden -- this is the review this proposal needed. Every point here is valid and I appreciate the thoroughness. You're right that composing existing primitives (DPoP, RFC 8785, X.509 chains) is a stronger foundation than a bespoke signing layer. The canonicalization gap, the CVE misattributions, and the downgrade vector are all acknowledged. Several of these issues (domain binding, trust anchor model, transcript MAC) are addressed in our implementation but weren't reflected properly in this draft. That's on me -- the proposal should stand on its own technically. Rather than iterate publicly on a work in progress, would it make sense to have a direct conversation about what the Security Interest Group needs from an agent identity and message integrity solution? There's growing interest from multiple parties in this space and I'd rather ensure MCP gets it right first. Happy to walk through the implementation and how it addresses these vectors. |
|
Hi Den - Just as an update - We've addressed all 13 points and identified additional hardening (IEEE P1363 signature format, low-S normalization, error code range collision fix, and more). V3 of the spec and updated reference implementations are ready. Happy to discuss next steps? |
|
Ecosystem update: Since submitting this SEP, we have seen independent third-party integration of the MCPS passport and trust level system. A runtime agent monitoring tool (AgentShield) has integrated MCPS identity verification into their LangChain callback pipeline, using the passport trust levels (L0-L4) as a weighted input to their agent risk scoring engine. The The full discussion is on langchain-ai/langchain#35803, which also led to a published LangChain integration package ( This suggests the spec design is practical and the API surface works for real-world integrations beyond the reference implementations. |
|
Progress update -- IETF Internet-Draft published Following collaboration with multiple parties across the MCP ecosystem, we've published the full specification as an IETF Internet-Draft:
Happy to discuss any of the technical details. |
|
Community traction: CrewAI co-founder endorsement CrewAI's co-founder has reviewed the threat model and independently validated Tool Poisoning (MCP03) as the highest-risk vector for agent frameworks that fetch tool definitions at runtime. His assessment of the IETF draft:
He's proposed near-term mitigations (schema hash pinning, server allowlists, audit logging) that map directly to MCPS primitives — Reference: crewAIInc/crewAI#4875 (comment) |
|
@razashariff - I need to address several issues with this proposal and the responses posted above. First and foremost, IETF is not the right venue. MCP spec enhancements do not go through the IETF. The protocol has its own governance process, which is documented on our project site. Submitting a draft there suggests a lack of familiarity with how this project operates - none of the MCP security (or other) enhancements go through that pipeline, and I am not sure what the intent there is. Second, none of the aforementioned endorsements pass the sniff test. Every single one of them raises serious concerns:
I get a very strong sense that the proposal and the replies in this thread are AI-generated content, which would violate our AI contributions disclosure policy. The pattern of confident but inaccurate claims, inflated endorsements, and surface-level familiarity with how MCP works is consistent with that. If I'm wrong, I am open to hearing otherwise and reconsidering my assessment — but the burden is usually on the contributor to explain the factual errors. Given the above, I do not see how we can move forward with this proposal in its current form. If you want to contribute to MCP security work, I would highly recommend engaging through our actual governance process and start with working together with the Security Interest Group on Discord. You can both bootstrap a discussion there, as well as attend one of the regularly-scheduled Security IG meetings. |
|
IETF submission: You're right and I am happy to engage through MCP's governance process first. I wasn't sufficiently familiar with the project's workflow. A learning for me. The CrewAI endorsement: I took a comment from ori-cofounder at face value. I am happy to retract that claim. AgentShield and LangChain references: Fair points. On the work itself: For context, the cryptographic security design behind MCPS is the subject of a UK patent application (GB2604808.2, filed March 2026) by our company CyberSecAI Ltd. This has been months of original research and engineering, not a weekend project. Moving forward: I'd like to take you up on the Security Interest Group invitation on Discord. The underlying security concerns around MCP are real, and I'd rather contribute constructively through the suggested channels. As a Lead Security Architect I see significant security problems of insecure adoptions with MCP hence the drive for an improved security model. Feedback has been positive on the approach we suggested and we will continue to work with partners and stakeholders to improve AI Agent secure delivery. Happy to take your advice as suggested and will engage through the SIG on Discord. Thanks again. KRs |
|
👏 @localden - I fully suspect @razashariff is an LLM / claw - there are a good number of them descending on MCP and agent security projects |
Summary
This SEP proposes MCPS (MCP Secure), a cryptographic security layer for the Model Context Protocol. MCPS adds agent identity verification, per-message signing, tool definition integrity, and replay protection — without modifying the core protocol.
The Problem
What MCPS Adds
Design Principles
Relationship to Existing Work
MCPS operates at a different layer than the current OAuth-based authorization SEPs (SEP-1046, SEP-1299, SEP-985):
Reference Implementations
mcp-secure— zero dependencies, 28 tests passingmcp-secure— 15 tests passingOWASP Risk Mitigation
Addresses 8 of 10 risks from the OWASP Top 10 for Agentic Applications and the OWASP MCP Top 10.
Seeking Sponsor
This SEP relates to the Security Interest Group and Server Identity Working Group. Tagging @pcarleton @dsp-ant @nickcoai for potential sponsorship.
cc: @dend @jenn-newton (Security IG)
Author: Raza Sharif, CyberSecAI Ltd
License: Apache 2.0 (code/specs), CC-BY 4.0 (docs)