Servidor MCP remoto gestionado para tus agentes de IA
Zerolith expone un servidor MCP (Model Context Protocol) remoto y gestionado. Conecta Claude Code, Cursor, VS Code o cualquier cliente compatible: tu agente escribe, despliega, invoca y administra tus funciones serverless alojadas en Francia. No tienes que alojar ningún servidor MCP ni confiarle una clave de API.
Qué es
El Model Context Protocol es el estándar con el que un asistente descubre y llama a herramientas externas. Un servidor MCP remoto es accesible por HTTP: no hay nada que instalar ni que ejecutar en tu equipo, y la misma conexión funciona desde cualquier máquina donde estés autenticado.
El servidor MCP de Zerolith ejecuta exactamente el mismo código que la API REST y la interfaz web. No existe ninguna vía privilegiada reservada a los agentes, así que una herramienta MCP nunca puede hacer lo que tu cuenta no puede hacer por sí misma.
https://zerolith.io/mcp
Documento de descubrimiento OAuth (RFC 9728): https://zerolith.io/.well-known/oauth-protected-resource
Conectar un cliente
El transporte es HTTP. Apunta tu cliente a la URL de arriba: la autorización OAuth 2.1 se lanza en la primera conexión, en tu navegador.
Claude Code
Un solo comando. Se abre el navegador para la autorización y después las herramientas aparecen en la sesión.
claude mcp add --transport http zerolith https://zerolith.io/mcp
Cursor, VS Code y otros clientes
Los clientes que se configuran con un archivo aceptan este bloque; el nombre y la ubicación del archivo varían según el cliente.
{
"mcpServers": {
"zerolith": {
"type": "http",
"url": "https://zerolith.io/mcp"
}
}
}Autenticación y revocación
El acceso pasa por OAuth 2.1: no hay clave de API que copiar en la configuración de un cliente, y por tanto ningún secreto de larga duración olvidado en un archivo de configuración.
- Registro dinámico del cliente (RFC 7591): tu agente se registra por sí mismo. No tienes que crear, copiar ni guardar en ningún sitio ningún identificador de aplicación.
- PKCE en S256, obligatorio: un código de autorización interceptado es inutilizable sin el verificador, que nunca sale de tu agente.
- Token ligado a su recurso (RFC 8707): un token emitido para zerolith no vale en ningún otro sitio, y un token emitido para otro servicio no vale aquí. Aunque se robe, no abre la puerta equivocada.
- Rotación de los tokens de refresco: cada renovación invalida la anterior, de modo que un token robado y reutilizado se delata solo.
- Dos ámbitos y nada más: mcp:read para consultar, mcp:write para actuar. Un ámbito solicitado que no conocemos se rechaza, nunca se amplía en silencio.
Revocación: cambiar tu contraseña invalida de inmediato las autorizaciones MCP en curso (refresh tokens y códigos de autorización sin consumir), además de tus sesiones web.
Lo que un agente puede hacer
Conectar un agente es delegarle acciones, no tus secretos. Esto es hasta dónde puede llegar y lo que nunca verá.
- Solo actúa dentro de tu cuenta. Cada herramienta está limitada a tus propios recursos: consultar el identificador de una función que no te pertenece responde «no encontrado» y nunca «prohibido». Ni siquiera confirmamos que exista.
- Tus claves de API siguen siendo invisibles. Se guardan con hash y solo se muestran una vez, al crearlas, en la interfaz. Ninguna herramienta MCP las devuelve y el agente no las necesita: se autentica con su propio token.
- Tus secretos también. Una variable de entorno de tipo secreto se escribe en el clúster y nunca se vuelve a leer: el agente puede crearla, reemplazarla o eliminarla, pero no leer su valor. Tú tampoco, por cierto.
- El token de tu base de datos y tus claves de almacenamiento tampoco salen. El agente puede crear la base, adjuntarla a una función, lanzar tus migraciones o disparar una exportación sin recibir nunca el identificador que la abre.
- Las acciones que modifican el estado se declaran como tales. Cada herramienta anuncia si escribe, lo que permite a tu cliente MCP pedirte confirmación antes de dejar actuar al agente.
Cortas el acceso cuando tú decidas, desde la página MCP de tu panel. La revocación invalida de inmediato el token de acceso ya emitido, y no solo su renovación: de lo contrario, un agente conservaría el control hasta que el token caducara mientras la interfaz mostraría «desconectado». Restablecer tu contraseña también corta todo acceso MCP en curso.
Las herramientas expuestas
63 herramientas, todas limitadas al perímetro de tu cuenta. Las descripciones de abajo son las que el servidor anuncia a tu cliente, palabra por palabra: es el contrato que lee el agente.
| Herramienta | Ámbito | Descripción |
|---|---|---|
| whoami | mcp:read | Return the authenticated account and credit balance. |
| get_catalog | mcp:read | List languages, size presets, deploy defaults, and pricing. |
| list_functions | mcp:read | List all of the caller's deployed functions (each with its `tags`). |
| get_function | mcp:read | Get one function by id (config, URL, attached env vars, and current source code (`code`, and `files` + `code_paths` for a multi-file function) — read this before update_function to edit code in place). |
| deploy_function | mcp:write | Deploy a new function from `code` (one file) or `files` (a source tree). Requires a verified account. Pass `database` (a name) to auto-create-or-reuse a private database and attach it — the function code then just reads DATABASE_URL / DATABASE_AUTH_TOKEN (requires databases enabled). Pass kind='migrate' for a schema migrator: it runs once on demand and has no URL at all. |
| update_function | mcp:write | Update a function (code and/or config). Requires a verified account. |
| delete_function | mcp:write | Delete a function. Requires a verified account. |
| invoke_function | mcp:write | Invoke a deployed function once (credit-gated); returns HTTP status. |
| get_function_metrics | mcp:read | Live status metrics for one function (rps, latency, instances, cpu/mem). |
| get_function_logs | mcp:read | Recent stdout/stderr of one function, newest first. This is the function's OWN output; the platform's request log is not included. Optionally filter by a plain substring (not a pattern). Paginate backwards with end_cursor_ns. |
| get_function_scan | mcp:read | The newest static-analysis scan of one function's source: a note (score 0-100 and a grade A-E), the counts per severity, and the individual problems with their line numbers. It is an INDICATOR, not a gate — it never blocks a deploy and never changes what runs. A scan is queued on every code deploy and runs asynchronously, so a freshly deployed function answers status 'pending' until a worker picks it up. When `stale` is true the code has changed since this scan ran. |
| build_dependencies | mcp:write | Build a function's third-party packages from its lockfile, as a separate step BEFORE deploying: Python reads `requirements.txt`, Node reads `package-lock.json` (with `package.json` beside it) at the root of `files`. A deploy whose files carry a lockfile is refused (409) until the build of that exact lockfile is 'ready'. The build runs `pip install` / `npm ci` in a Job in your own namespace and is billed like compute (container seconds at the compute prices); failed builds are billed too. Returns at once with status 'building' (poll get_dependency_build), or 'ready' immediately if this lockfile was already built (nothing started, nothing billed) unless `force` rebuilds it. One build at a time per account and a per-hour cap: a refusal says when to retry. |
| get_dependency_build | mcp:read | One dependency build: status (building | ready | failed | purged), sizes, and, when it failed, the reason. Also `vulns`: the OSV advisory ids known for the installed packages ([{name, version, ids}], [] = none, null = not scanned yet; `scan_error` if the lookup failed). An indicator, never a gate. Poll this after build_dependencies until 'ready', then deploy. |
| list_dependency_builds | mcp:read | List the caller's dependency builds, newest first. |
| delete_dependency_build | mcp:write | Delete a dependency build's stored artifact now, so it stops counting against the account's storage (billed beyond a free allowance on paid accounts, capped on trial ones). Refused while it is building or while a function uses it. A later deploy of the same lockfile needs build_dependencies again. Unused builds are deleted automatically after a retention period. |
| get_database_logs | mcp:read | Recent log lines of one database's sqld engine, newest first. Platform storage identifiers are redacted. Optionally filter by a plain substring (not a pattern). |
| get_usage_summary | mcp:read | Billing summary: balance plus requests, GB-seconds and cost billed, with the compute/storage split (database storage is billed on the tier held). Covers the CURRENT CALENDAR MONTH by default — pass period='all' for the account lifetime. The range aggregated is returned as since/until; the balance is always current. |
| list_env_vars | mcp:read | List the caller's account-level env vars (config values readable; secret values are write-only and never returned). |
| get_env_var | mcp:read | Get one account env var by id (config value readable; secret value never returned — use its value to edit a config var in place). |
| create_env_var | mcp:write | Create an account env var. Requires a verified account. |
| update_env_var | mcp:write | Replace an account env var's value. Requires a verified account. |
| delete_env_var | mcp:write | Delete an account env var (409 if still referenced by a function). Requires a verified account. |
| list_schedules | mcp:read | List the caller's cron schedules (all of them, or one function's): the UTC cron expression, whether it is enabled, the next fire time and how the last run went. |
| create_schedule | mcp:write | Call an HTTP function on a schedule: a standard 5-field cron expression, in UTC (e.g. '*/15 * * * *', '0 7 * * 1-5'). Each run is a normal billed invocation, made by the platform with no API key. Not available on a migrate function. Requires a verified account. |
| update_schedule | mcp:write | Change a schedule's cron expression (the next fire is recomputed from now) and/or pause or resume it with `enabled`. Requires a verified account. |
| delete_schedule | mcp:write | Delete a cron schedule. The function itself is untouched. Requires a verified account. |
| list_custom_domains | mcp:read | List the caller's custom domains (on functions and on static sites): the hostname, its status (pending/verified/active), and the exact DNS records to publish. Use this to tell the user what is still missing — `pending` means the ownership TXT record has not been seen yet, and `last_error` says why. |
| add_custom_domain | mcp:write | Claim a hostname for one of the caller's functions OR static sites (pass exactly one of function_id / site_id). Nothing is routed yet: the response carries a TXT record the user must publish to prove they control the domain, plus the CNAME to point at us. Once both exist the platform provisions TLS and the route automatically, usually within a minute. |
| delete_custom_domain | mcp:write | Release a custom domain. Removes its route and certificate; the hostname stops serving immediately and becomes claimable again. |
| create_presigned_url | mcp:write | Mint a presigned URL that invokes ONE function until ONE deadline, with no API key needed by whoever calls it — the credential is in the URL. Use it to hand a webhook sender, a browser or a third party temporary access to a private function instead of sharing an account API key. The URL is returned ONCE and never again; the deadline defaults to 7 days and can be set with `expires_at`. Revoke it early with revoke_presigned_url. |
| list_presigned_urls | mcp:read | List a function's presigned URLs: label, deadline, whether each is still live, when it was last used, and when it was revoked. The URL and its token are never returned — they exist only in the create response. Expired and revoked entries are listed too, because 'why did this URL stop working' is asked after the fact. |
| revoke_presigned_url | mcp:write | Revoke a presigned URL before its deadline. It stops authorizing invocations within seconds (the edge caches decisions briefly). Irreversible — mint a new one if it was a mistake. |
| list_databases | mcp:read | List the caller's private databases (tier, always_on, status, tags). The auth token is never returned — it is injected into attached functions. |
| get_database | mcp:read | Get one private database by id (tier, size, always_on, attached functions, and the injected env-var names). The token value is never returned. |
| create_database | mcp:write | Create a private database. Requires a verified account (+ databases enabled). Returns the injected env-var names (DATABASE_URL, DATABASE_AUTH_TOKEN); the token value is write-only and never returned. |
| delete_database | mcp:write | Delete a private database (409 if still attached to a function). Requires a verified account. |
| attach_database | mcp:write | Attach a database to a function (injects DATABASE_URL / DATABASE_AUTH_TOKEN and redeploys it). One database per function. Requires a verified account. |
| detach_database | mcp:write | Detach a database from a function (drops the injection and redeploys it). Requires a verified account. |
| get_database_metrics | mcp:read | Live status for one database: CPU, memory, running instances and the bytes its data volume holds, against the provisioned storage tier. When instances is 0 the database is asleep: CPU/memory are 0, but volume_used_bytes is still its last measured size (a sleeping database takes no writes) — report it as such, not as live. |
| set_database_size | mcp:write | Change a database's CPU/memory preset (same size names as functions — see get_catalog). Requires a verified account. RESTARTS the database: an awake one is briefly unavailable and in-flight connections drop; the data is untouched. Sending the preset it already has changes nothing and restarts nothing. |
| set_database_tier | mcp:write | Raise a database's provisioned storage tier (see get_catalog for the ladder). UPGRADE ONLY — a lower tier is refused, because the cap bounds a database that is already larger and shrinking needs compaction, not a smaller number. Use this when writes start failing with 'database or disk is full'. Requires a verified account. RESTARTS the database, and the new cap only applies once that restart completes — a write retried immediately may still fail; wait a few seconds. Storage is billed on the tier held, so the charge rises from the next billing window. |
| rotate_database_token | mcp:write | Withdraw this database's current access token and issue a new one. Use after a suspected leak: the token is injected into attached functions' environment by design and carries no expiry, so rotating is the only way to withdraw it. RESTARTS the database and redeploys every attached function; anything still holding the old token (a copied value, a local script) stops working immediately. The data is untouched. Requires a verified account. |
| set_database_always_on | mcp:write | Switch a database between scale-to-zero and always-on. Always-on keeps one instance up so no query pays a cold restore from S3, and bills its compute continuously; scale-to-zero costs nothing while idle. Storage is billed either way. Requires a verified account. RESTARTS the database, so an awake one is briefly unavailable. |
| set_database_stable_window | mcp:write | Set how long a database stays up after its last query before scaling to zero (6s–1h). Waking it costs a cold start plus a restore from S3, so a longer window absorbs spaced-out bursts for a fraction of what always_on costs. Only takes effect while always_on is false. Requires a verified account. RESTARTS the database, so an awake one is briefly unavailable. |
| export_database | mcp:write | Export a database to a portable SQL dump you can download and restore anywhere (gunzip | sqlite3). Poll get_database_export for the download link. Use this before deleting a database, and whenever the account is low on credit: a database whose account stays at a zero balance has its DATA deleted once the retention window (see get_catalog databases.retention_days) elapses. Requires a verified account. |
| get_database_export | mcp:read | Status of a database's latest export, with a time-limited download URL once it is ready (status 'ready'). 'pending' means the dump is still running — poll again; 'failed' carries the reason. The URL expires (see get_catalog databases.export_url_ttl_seconds); calling this again mints a fresh one. |
| list_database_exports | mcp:read | The export history of a database, newest first: when each dump was taken, how big it was, and whether it is still downloadable. Only ONE dump is kept per database — older entries read 'superseded', meaning the record remains but the file was replaced by the newer export. |
| set_database_migrator | mcp:write | Designate one of your functions as a database's schema migrator (attaches it so it receives DATABASE_URL/DATABASE_AUTH_TOKEN). Requires a verified account. The function should be idempotent — it runs on demand via run_migration. |
| unset_database_migrator | mcp:write | Remove a database's migrator designation. The function stays attached (it may still use the database) — use detach_database to drop the injection too. Requires a verified account. |
| run_migration | mcp:write | Run a database's designated migrator function once, on demand. Always invoked through the internal signed-token path, never the function's public route. Credit-gated. Returns the invocation outcome (ok/status). |
| list_sites | mcp:read | List the caller's static sites: name, public URL, whether SPA routing is on, the live deploy and the bytes held. A site serves a built frontend (the `dist/` folder of a Vite/React app) at https://<name>.<sites domain>, and its pages can call the owner's PUBLIC functions on the same origin under /api/<function-name>/ — no CORS. |
| create_site | mcp:write | Create a static site. The name becomes the hostname (<name>.<sites domain>): 3-40 lowercase letters, digits and hyphens. Nothing is served until a deploy is published — use deploy_site next. |
| update_site | mcp:write | Change a static site's settings. `spa`: serve index.html for unknown extension-less paths (client-side routing); turn it off for a plain multi-page site, so a missing page is a real 404. Takes effect within about 10 seconds, no redeploy. |
| deploy_site | mcp:write | Upload a built site's files INLINE and publish it in one call. Pass the CONTENTS of the build folder (paths relative to it, `index.html` at the root) — not the source tree: run the build first. Text files go in `content`, binary files (images, fonts) in `content_base64`. Limited to about 1.4 MB in total; for a bigger build use create_site_deploy, which returns presigned URLs to upload to (e.g. with curl). |
| create_site_deploy | mcp:write | Start a deploy of a LARGE build by declaring its files (path, sha256 hex, size in bytes). Returns one presigned PUT URL per file the site does not already hold: upload each file's exact bytes there (`curl -X PUT --data-binary @file '<url>'` — the size is part of the signature), then call publish_site_deploy. Unchanged files are skipped, so a redeploy usually uploads only a few. |
| publish_site_deploy | mcp:write | Make a deploy live. For a deploy from create_site_deploy, call it once every file is uploaded (it refuses, naming how many are missing, until then). For an OLDER deploy, this is the rollback. |
| list_site_deploys | mcp:read | List a site's deploys, newest first, with which one is live. The published ones that are not live are the rollback targets. |
| delete_site_deploy | mcp:write | Delete one past version of a static site and free its storage. The live version cannot be deleted: publish another one first. Irreversible. |
| set_site_password | mcp:write | Protect a static site with a password: every visitor then gets a login page first, and stays signed in for 7 days. Covers the whole origin, /api/ included (the functions themselves stay reachable at their own address, as before). Setting it again replaces the password and signs every visitor out. 8 to 128 characters. The password is sent through this conversation: prefer the dashboard if that matters. |
| remove_site_password | mcp:write | Remove a static site's password: it becomes public again within about 10 seconds. |
| delete_site | mcp:write | Delete a site and every file it holds. Its hostname stops serving within seconds; the name stays reserved to this account for a while. |
| set_tags | mcp:write | Replace the tags of one function, static site, database or custom domain. Tags are `key=value` labels for grouping and filtering (keys lowercase, an empty value is a plain label; at most 20 per resource). Send the COMPLETE set: it replaces the previous one, so an empty object clears it. Pure metadata: nothing is redeployed and billing is unaffected. Requires a verified account. |
| list_tags | mcp:read | Every tag key the caller uses, each with its distinct values and how many resources (functions, sites, databases, domains) carry it. Use it to discover what to pass as the `tags` filter of the list_* tools. |
19 de estas herramientas se refieren a las bases de datos privadas, una funcionalidad opcional. Donde el despliegue no la activa, ni se anuncian en tools/list ni se pueden llamar.
Lo que el agente no puede hacer
El servidor MCP no es un acceso de administrador. Está sujeto a las mismas reglas que el resto de la plataforma:
- Solo el perímetro de la cuenta: un recurso que no te pertenece responde 404 y nunca 403, de modo que el agente ni siquiera sabe que existe.
- Las operaciones de escritura exigen una cuenta verificada y se rechazan cuando se agota el crédito.
- Los valores de los secretos nunca se vuelven a leer: ninguna herramienta puede devolverlos, ni al agente ni a ti.
Cuánto cuesta
Manejar la plataforma con un agente no cuesta nada en sí. Las llamadas de administración (crear una función, listar tus bases, consultar tus métricas, modificar una variable) pasan por la API de la plataforma y no se facturan.
Lo que se factura es la ejecución. Una invocación lanzada por un agente se cuenta exactamente igual que cualquier otra y está sujeta al mismo control de crédito: un saldo agotado la rechaza en el borde, antes incluso de que arranque tu código. Un agente no puede, por tanto, vaciar tu saldo a tus espaldas.
Preguntas frecuentes
¿El servidor MCP está alojado en vuestra infraestructura o en la mía?
En la nuestra. Es un servidor MCP remoto, accesible por HTTP en la URL publicada en esta página. No tienes nada que instalar ni que mantener, y sigue accesible desde cualquier equipo donde te autentiques.
¿Tengo que confiar una clave de API a mi agente?
No. El acceso pasa por OAuth 2.1 con PKCE: el cliente obtiene un token ligado a su audiencia, revocable en cualquier momento, y no se guarda ninguna clave de API de larga duración en la configuración del agente.
¿Qué clientes MCP son compatibles?
Cualquier cliente que hable MCP sobre transporte HTTP con autorización OAuth 2.1: Claude Code, Cursor, VS Code y el resto de implementaciones conformes. El servidor no da ningún trato específico a cada cliente.
¿Puedo alojar yo mismo el servidor MCP?
No es necesario, es justo lo que te ahorra el servicio gestionado. El protocolo sigue siendo estándar y las mismas acciones están disponibles mediante la API REST, así que nada te ata.
¿El servidor MCP se factura aparte?
No. El MCP no se factura: pagas el tiempo en que tus funciones están encendidas y sus invocaciones, exactamente igual que si las hubieras desplegado a mano.
Dale un FaaS a tu agente
Crea una cuenta, conecta tu cliente MCP y deja que el agente despliegue su primera función. Crédito de regalo al registrarte, sin tarjeta bancaria.
Empezar gratis »