Core Concepts
Core Concepts
đ TL;DR: Understand the foundational ideas behind MCP architecture, such as models, context injection, prompt routing, and chaining logic across AI tools.What is a âmodelâ in the MCP Server context?
In the context of MCP Servers, a model isnât just an LLM, itâs any computational component that receives structured input and returns structured output. This could be:- An LLM like GPT or Claude
- A scanning engine like Nmap
- A lookup tool like VirusTotal or Shodan
- Even a custom script or regex-based processor
How does context injection work in practice?
Context injection allows an agent to preload relevant information before executing tasks. Think of it as priming the system with background knowledge. Example: { “context”: { “organization”: “SOCRadar”, “industry”: “threat_intelligence”, “compliance_framework”: “ISO 27001” }, “task”: “vulnerability_assessment”, “target”: “socradar.io” } An MCP Server receiving this can adjust behavior accordingly, for example, applying stricter filters if the org is bound by ISO standards. This improves task relevance and response quality.Which protocols and input formats are supported?
MCP Servers primarily use:- JSON (default):Â Official schema format for tasks and responses.
- YAML: Sometimes supported via translation layers for human-readable configs.
- gRPC or JSON-RPC: For real-time interaction across distributed agents.
- HTTP/HTTPS: As the transport layer for most REST-like MCP Servers.
How does prompt routing or prompt rewriting happen inside the server?
Prompt routing is how MCP Servers decide which model, tool, or API should handle each step of the task. Example workflow:- Agent says: âScan ports and generate a reportâ
- MCP Server:
- Parses âscan portsâ â selects Nmap
- Parses âgenerate reportâ â selects Claude or GPT
- Rewrites these as sub-prompts internally
- Task keywords
- Available tools
- Cost/performance preferences
- Agent history or prior outcomes
Can multiple models be chained or orchestrated together?
Absolutely. Chaining and multi-model orchestration are key MCP strengths. A task like analyze_suspicious_email might involve:- Attachment scan â via VirusTotal MCP
- Domain lookup â via Shodan MCP
- Summary writing â via Claude MCP
How are context files stored, cached, and retrieved?
Context files (e.g., org data, compliance configs, past tasks) can be stored:- Locally (in ./contexts/ folders)
- In-memory cache (e.g., Redis)
- Object storage (e.g., AWS S3, GCP Storage)
Intelligence in your inbox every Thursday.
Join 30,000+ security professionals reading SOCRadar research.
Subscribe