building-mcp-server-on-cloudflare
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides code templates for tools that ingest data from external APIs or take raw SQL input, creating a surface for indirect prompt injection. If the external data sources are compromised or the input is manipulated, the agent could be tricked into performing unauthorized database operations or data exfiltration.
- Ingestion Points: In
SKILL.md, theget_weathertool fetches data from an external API, and thequery_dbtool accepts a rawsqlstring input. - Boundary Markers: The basic tool registration examples do not include explicit instructions or markers to distinguish between system instructions and untrusted data.
- Capability Inventory: The tools demonstrate significant capabilities, including network access via
fetch()and database manipulation viaenv.DBinSKILL.md. - Sanitization: Although the skill provides a dedicated security reference (
references/oauth-setup.md) covering input sanitization, the primary tool examples inSKILL.mdomit these protections for brevity. - [EXTERNAL_DOWNLOADS]: The skill instructs the user to download project templates from Cloudflare's official demo repositories using the
npm create cloudflare@latestcommand. These templates are sourced from Cloudflare, a well-known service provider, and are used for initial project scaffolding. - [COMMAND_EXECUTION]: The instructions include standard developer commands to manage the lifecycle of the MCP server, such as
npm startfor local testing,npx wrangler deployfor production deployment, andnpx @modelcontextprotocol/inspectorfor debugging.
Audit Metadata