56
/ 100
1 month ago
glama

Paid MCP Server Template

A production-ready template for building monetized MCP servers that require per-call payments via the Mainlayer infrastructure. It provides a structured payment gate that ensures AI agents pay for tool usage before accessing server logic or data.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
🚨
Secret credentials may flow to a network call
2 flows detected: MAINLAYER_API_KEY. We can’t prove the destination matches the brand the credential belongs to.
⚠️
Known vulnerabilities in dependencies: 16 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
🔐
You'll be asked for 1 credential: MAINLAYER_API_KEY
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// known CVEs in dependencies16 high12 low

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.0.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.0.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

highaxios@1.6.0GHSA-35jp-ww65-95wh

axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`

highaxios@1.6.0GHSA-3g43-6gmg-66jw

axios Vulnerable to Credential Theft and Response Hijacking via Prototype Pollution Gadget in Config Merge

highaxios@1.6.0GHSA-43fc-jf86-j433

Axios is Vulnerable to Denial of Service via __proto__ Key in mergeConfig

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
🔐 secretMAINLAYER_API_KEYml_your_api_key_here
configRESOURCE_ID_ANALYZE_CODE"": "res_xxxxxxxxxxxx",
configRESOURCE_ID_GENERATE_IMAGE_PROMPT"": "res_xxxxxxxxxxxx",
configRESOURCE_ID_SEARCH_WEB"": "res_xxxxxxxxxxxx",
configRESOURCE_ID_SUMMARIZE_URL"": "res_xxxxxxxxxxxx"
configRESOURCE_ID_WEATHERres_xxxxxxxxxxxx
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 3 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/mainlayer-paid-mcp-server-1ymecv)](https://m8ven.ai/mcp/mainlayer-paid-mcp-server-1ymecv)
commit: e299796a50d03a917ffc2dfedc2e46546d1e17af
code hash: 0f9b4723e62077aebe59a8dd64567c0d95eade1abd6f139e970f3dd2b2f3044e
verified: 6/12/2026, 10:56:31 AM
view raw JSON →