Campervan-mcp
Uses Cloudflare D1 for relational database of component specs and Cloudflare Vectorize for semantic search over van build manuals and documentation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Campervan-mcpCalculate wire gauge for 12V 30A circuit 15 feet long"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Campervan-mcp
A production-grade Model Context Protocol (MCP) server for campervan/DIY-van-build technical and electrical planning, built with TypeScript and deployed on Cloudflare Workers.
It gives AI assistants (Claude, etc.) tool access to deterministic electrical calculations, payload/weight capacity checks, a component specs database (Cloudflare D1), and semantic search over van build manuals and documentation (Cloudflare Vectorize).
Features
Deterministic calculations — All electrical, wire sizing, and weight math is implemented in pure TypeScript (
src/utils/formulas.ts), never left to LLM guesswork.Component spec lookup — Query a D1-backed relational database of electrical/mechanical component specs (busbars, inverters, heaters, etc.).
Semantic manual search — Search vectorized PDF/HTML documentation (wiring diagrams, body builder guides, error codes) via Cloudflare Vectorize.
Stateless HTTP transport — Uses the MCP Streamable HTTP transport, well suited to Cloudflare Workers' request/response model.
Related MCP server: CalcsLive MCP Server
Tools
Tool | Description |
| Calculates recommended AWG wire size, conductor resistance, voltage drop percentage, and fuse sizing for a DC circuit based on electrical load, wire run distance, and system voltage. |
| Validates a solar panel string configuration (series/parallel) against MPPT charge controller specifications, checking cold-weather open-circuit voltage (Voc) safety and current limits. |
| Calculates total component weight against vehicle GVWR for Sprinter, Transit, and Promaster vans. Returns remaining payload capacity and estimated axle load distribution. |
| Lists all supported van models with their GVWR, curb weight, maximum payload, and axle ratings. |
| Queries the D1 database for component specifications including terminal stud sizes, max continuous amp ratings, dimensions, and idle power draw. |
| Retrieves exact specifications for a component by its model number from the D1 database. |
| Searches the vector database of campervan documentation using semantic similarity (wiring diagrams, error codes, body builder guides, equipment manuals). |
Architecture
src/
├── index.ts # Worker entrypoint — wires up McpServer + HTTP transport
├── tools/
│ ├── electrical.ts # Wire gauge & solar array validation tools
│ ├── payload.ts # Van payload/weight capacity tools
│ ├── specs.ts # D1-backed component spec lookup tools
│ └── manuals.ts # Vectorize-backed semantic manual search tool
└── utils/
├── formulas.ts # Pure TypeScript electrical/weight calculation helpers
└── db.ts # D1 database helpers
d1/
├── migrations/ # Sequential, non-destructive D1 schema migrations
└── seeds/ # Seed data for component_specs table
scripts/
└── ingest-docs.ts # Ingests PDF/HTML docs into Vectorize for RAG search
tests/
├── unit/ # Unit tests for formulas and tools
└── e2e/ # End-to-end tests against the MCP HTTP endpointsThe server binds to two Cloudflare resources (see wrangler.toml):
D1 (
DB) — relational database of component specs.Vectorize (
VECTOR_INDEX) — vector index of chunked manual/documentation text, with an optional Workers AI (AI) binding for embeddings.
Prerequisites
Node.js >= 20
A Cloudflare account with Workers, D1, and Vectorize enabled (for deployment)
Wrangler CLI (installed as a dev dependency)
Getting Started
Install dependencies:
pnpm installRun the worker locally:
pnpm devApply D1 migrations locally:
npx wrangler d1 migrations apply DB --localType-check the project:
pnpm tsc --noEmitTesting
pnpm test # run all tests (unit + e2e)
pnpm test:unit # unit tests only
pnpm test:e2e # end-to-end tests only
pnpm test:coverage # unit tests with coverageLinting
pnpm lintUses ESLint 9 flat config (eslint.config.mjs) with typescript-eslint recommended rules.
Deployment
Update wrangler.toml with your own D1 database_id, then deploy:
pnpm deployIngesting Documentation
Vectorize search results are populated from PDF/HTML manuals using the ingestion script:
npx wrangler vectorize create van_manuals_index --dimensions=384 --metric=cosine
npx tsx scripts/ingest-docs.ts --source ./docs/transit-body-builder.pdf --name ford_transit_body_builderRequires CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN environment variables.
Contributing
See AGENTS.md for repository conventions and rules that apply to automated/AI contributors (deterministic calculations, migration policy, schema validation with Zod, and testing thresholds), which are also good practices for human contributors.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sekka1/Campervan-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server