Serverless MCP Connector
Allows sending prompts to OpenAI or OpenAI-compatible APIs through the configured agent backend and returns the model response.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Serverless MCP Connector
A zero-dependency, stateless Model Context Protocol (MCP) Streamable HTTP connector built for Vercel:
Static / Edge layer (
public/) — Zero-build service status page (index.html) and discovery manifest (/.well-known/mcp.json) served directly from Vercel's Edge CDN.Serverless MCP Route (
api/mcp.ts) — Stateless JSON-RPC 2.0 Streamable HTTP handler (POST,DELETE,OPTIONS;GETreturns405per spec) that delivers prompts to a downstream agent and returns the response.Pluggable Agent Backend (
lib/agent/) — Supportsopenai(and OpenAI-compatible APIs),anthropic,gemini, custom HTTPwebhook, and a deterministicmockprovider for local testing.Pluggable Storage (
lib/storage/) — Supports Vercel Blob (REST API), Cloudflare R2 (S3-compatible API with built-in AWS SigV4 signing), and a local filesystem fallback for dev. Persists execution logs and offloads large response artifacts with MCP resource URIs.Bearer Auth (
lib/auth.ts) — Constant-timeAuthorization: Bearer <MCP_API_KEY>/x-api-keyverification with an explicitMCP_ALLOW_PUBLIC=truetoggle for local dev (fails closed in production if unconfigured).
Architecture
MCP Client (Claude / Cursor / Agent)
│ POST /api/mcp (JSON-RPC 2.0 + Bearer Auth)
▼
Vercel Serverless Function (api/mcp.ts)
├── lib/auth.ts → Timing-safe Bearer / x-api-key check & CORS
├── lib/mcp/ → Stateless MCP Streamable HTTP server
├── lib/agent/ → Downstream agent delivery (OpenAI / Anthropic / Gemini / Webhook / Mock)
└── lib/storage/ → Execution logs & large artifacts (Vercel Blob / Cloudflare R2 / Local)
Vercel Static / Edge CDN (public/)
├── / → Minimal service status & client config manifest
└── /.well-known/mcp.json → Static discovery descriptorRelated MCP server: Personal AI Memory Hub
Testing & Verification
Every claim (zero runtime dependencies, MCP Streamable HTTP conformance, Bearer auth, AWS SigV4 signing, R2/Blob persistence, and artifact offloading) is verified automatically in .github/workflows/ci.yml on Node 22 and Node 24 and can be reproduced locally in seconds:
# 1. Run all unit, integration, and MCP conformance tests (enforces >= 90% line coverage)
npm run test:coverage
# 2. Run the live HTTP black-box MCP conformance verifier against an ephemeral local server
npm run verify
# 3. Run the same black-box verifier against a live deployed Vercel URL
MCP_TARGET_URL=https://your-deployment.vercel.app MCP_API_KEY=your-secret npm run verify
# 4. Run strict TypeScript typechecking (after npm install)
npm run typecheckVerification Layer | Command | What It Validates |
Unit & Conformance Suite |
| 22 tests across auth/CORS, SigV4 + R2/Blob/Local storage, all 5 agent adapters, JSON-RPC error codes ( |
Live HTTP Verifier |
| 9 end-to-end HTTP checks against |
CI Zero-Dep Gate |
| Asserts |
Quickstart (Local)
Requires Node.js 22+ (runs TypeScript natively with zero build step and zero runtime dependencies):
cp .env.example .env.local
npm run test:coverage
npm run verify
npm run devVerify the running server with curl:
# Health check
curl http://127.0.0.1:3000/api/health
# Deliver a prompt via MCP tools/call
curl -X POST http://127.0.0.1:3000/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "deliver_prompt",
"arguments": {
"prompt": "Summarize the latest deployment status."
}
}
}'MCP Surface
Tools
Tool | Description |
| Sends |
| Lists persisted execution logs from Blob/R2 with pagination ( |
| Retrieves a persisted run log by |
| Removes a persisted run log and its offloaded artifact from storage. |
Resources
URI Template | MIME Type | Contents |
|
| Full execution log (prompt, model, latency, token usage, preview, metadata). |
|
| Full offloaded response body when size exceeds |
Prompts
agent_handoff— Formats anobjective, optionalcontext, and optionalformatinto a structured handoff message.
Configuration
See .env.example for all options. Key variables:
Security
MCP_API_KEY— Required Bearer token for/api/mcp.MCP_ALLOW_PUBLIC— Settrueonly for unauthenticated local dev. In production (VERCEL_ENV=production),/api/mcpfails closed (503) ifMCP_API_KEYis unset andMCP_ALLOW_PUBLICis nottrue.
Agent Provider (AGENT_PROVIDER)
mock(default) — Zero-config local mock agent.openai— RequiresAGENT_API_KEY; optionalAGENT_MODEL(gpt-4o-mini),AGENT_BASE_URL(for OpenRouter, Groq, etc.).anthropic— RequiresAGENT_API_KEY; optionalAGENT_MODEL(claude-3-5-sonnet-latest).gemini— RequiresAGENT_API_KEY; optionalAGENT_MODEL(gemini-2.5-flash).webhook— RequiresAGENT_WEBHOOK_URL; optionalAGENT_API_KEYsent asAuthorization: Bearer.
Storage Backend (STORAGE_PROVIDER)
auto(default) — Selectsvercel-blobifBLOB_READ_WRITE_TOKENis set, elser2ifR2_*credentials are set, elselocal.vercel-blob— RequiresBLOB_READ_WRITE_TOKEN.r2— RequiresR2_ACCOUNT_ID(orR2_ENDPOINT),R2_BUCKET_NAME,R2_ACCESS_KEY_ID,R2_SECRET_ACCESS_KEY(optionalR2_REGION=auto).local— Writes toLOCAL_STORAGE_DIR(defaults to.data/storage, or/tmp/mcp-connector-storageon Vercel).
Deploy to Vercel
Push this repository to GitHub or run
verceldirectly from the project root.In Vercel Project Settings → Environment Variables, set:
MCP_API_KEY(generate a strong random secret) andMCP_ALLOW_PUBLIC=falseAGENT_PROVIDER+ corresponding provider key (AGENT_API_KEYorAGENT_WEBHOOK_URL)Storage: either link a Vercel Blob store (auto-sets
BLOB_READ_WRITE_TOKEN) or configure Cloudflare R2 (R2_ACCOUNT_ID,R2_BUCKET_NAME,R2_ACCESS_KEY_ID,R2_SECRET_ACCESS_KEY).
Verify the live deployment with
MCP_TARGET_URL=https://<your-deployment>.vercel.app MCP_API_KEY=<key> npm run verify.Point your MCP client to
https://<your-deployment>.vercel.app/api/mcp:
{
"mcpServers": {
"serverless-connector": {
"type": "http",
"url": "https://<your-deployment>.vercel.app/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_API_KEY"
}
}
}
}License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Guarded webhook inbox and SSRF-safe HTTP/gRPC action gateway for AI agents via remote MCP.
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to access upstream MCP capabilities and OpenAI-compatible model routes through one invariant-preserving, policy-bounded endpoint with deterministic routing, leases, durable Tasks/Runs, and verifiable outcomes.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceExposes a remote Streamable HTTP MCP endpoint that lets an AI client save, search, and retrieve structured memories, archived conversations, social-account notes, and knowledge documents. Access is scoped by per-client API keys with configurable read/write permission levels, collections, and operations.ISC
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create profiles, search and apply for jobs, post jobs and threads, and build verifiable records of delivered work through a remote Streamable HTTP MCP endpoint.MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to access multiple stdio or Streamable HTTP MCP servers through one authenticated endpoint, enforcing OAuth bearer validation, per-client tool RBAC, rate limits, schema validation, audit logging, and tool-definition pinning.MIT