@lovable.dev/mcp-js weekly downloads statistics
By lovable.dev · npm · MCP servers
Author MCP servers for Lovable apps. Declare tools with defineTool, register them in defineMcp, and a framework adapter (TanStack or Supabase Edge Functions) emits the route(s) at build time.
@lovable.dev/mcp-js has 741,520 recorded weekly downloads on npm, a decrease of 12.8% over the past 30 days, ranking #327 of 3,247 tracked listings.
About @lovable.dev/mcp-js
@lovable.dev/mcp-js
Author MCP servers for Lovable apps. Declare tools with defineTool, register them with defineMcp, and a Vite plugin emits the framework-specific routes at build time for TanStack or Supabase Edge Functions.
Vite is an optional peer dependency: deployed MCP handlers do not need it. Both /stacks/*/vite plugins and lovable-mcp-extract-manifest require an explicitly installed Vite version >=5.0.0 <9.0.0. Keep your project's existing compatible version, or install one with npm install -D vite@^7. Build and manifest-extraction jobs must include dev dependencies; runtime-only deployments can omit them.
// src/lib/mcp/tools/echo.ts
import { defineTool } from "@lovable.dev/mcp-js";
import { z } from "zod";
export default defineTool({
name: "echo",
title: "Echo",
description: "Echo the input text back.",
inputSchema: { text: z.string().min(1) },
handler: ({ text }) => ({ content: [{ type: "text", text }] }),
});
// src/lib/mcp/index.ts
import { defineMcp } from "@lovable.dev/mcp-js";
import echoTool from "./tools/echo";
export default defineMcp({
name: "my-app-mcp",
title: "My App MCP",
version: "0.1.0",
instructions: "Tools for interacting with My App. Use `echo` to verify connectivity.",
tools: [echoTool],
});
// vite.config.ts
import { defineConfig } from "vite";
import { mcpPlugin } from "@lovable.dev/mcp-js/stacks/tanstack/vite";
export default defineConfig({ plugins: [mcpPlugin()] });
That's the whole authoring surface. No imperative server construction, no route handlers, no JSON-RPC envelope, no transport instantiation — all wrapped.
Manifest extraction allows 512 tools in the evaluated defineMcp({ tools }) array, including conditional and programmatically generated tools. Above that limit, extraction writes the current manifest and exits with an error; reduce the array to 512 tools or fewer. This is an extraction limit, not a runtime cap: the SDK does not truncate tools/list.
inputSchema is closed: a tools/call carrying an argument key the schema does not declare fails in-band (isError: true, naming the key) instead of silently dropping it, and tools/list advertises additionalProperties: false. Set strict: false on a tool to accept and drop unknown keys instead.
MCP POST bodies default to 1 MiB and tool arguments to 10,000 combined object members and array elements. Larger bodies receive HTTP 413; arguments over the element limit return a tool error before the handler runs. These defaults apply to both protocol eras, including Skills and app-context requests.
For tools that need larger inputs, set limits in defineMcp, for example limits: { maxRequestBodySize: 4 * 1024 * 1024, maxToolInputElements: 50_000 }. maxRequestBodySize is measured in bytes. Each override must be a positive safe integer; zero, fractional values, NaN and Infinity are rejected when the server is declared. Omitted fields keep their defaults. Hosting-provider limits still apply.
Task workflows as skills
Experimental: Skills support follows the developing MCP Skills extension. Client support varies, and the integration may change as the specification evolves.
Keep shared terminology and server-wide rules in instructions, individual tool contracts in tool descriptions, and task procedures in Agent Skills. Import a dedicated skill directory and pass it in defineMcp({ skills: [refunds] }):
import refunds from "./skills/refunds?skill";
Add /// <reference types="@lovable.dev/mcp-js/skill-imports" /> to an included .d.ts file. Imports use relative or absolute directory paths, not aliases. Both stack plugins and the manifest extractor compile these imports; the deployed server needs no source directory or filesystem access. Imported values have the opaque Skill type: pass them to defineMcp, rather than constructing or inspecting compiled manifests. Each directory needs SKILL.md with valid YAML name and description; name must match its directory. All JSON-compatible frontmatter fields are preserved. Supporting files must be UTF-8 text. Binary content, ASCII controls other than tab/CR/LF (including DEL), symlinks, cycles and metadata that cannot survive JSON serialization fail the build. Text scripts can be included, but the SDK neither installs nor executes them.
Every ordinary file beneath an imported directory is published recursively. Hidden entries (a dot-prefixed path segment) fail the build unless each file is explicitly allowlisted on that import:
import refunds from "./skills/refunds?allowHidden=templates/.prettierrc&allowHidden=.config/example.json&skill";
Repeat allowHidden for each exact, case-sensitive file path relative to the skill directory. Directory-wide grants, globs, traversal paths, duplicate entries and entries that do not name an existing file are rejected. A hidden directory is traversed only for listed descendants; every file beneath it needs its own entry. An empty hidden directory fails too. Allowed files still pass the text-only and symlink checks. Combine allowHidden with path in either order, keeping skill last; percent-encode reserved characters in values (for example %26 for & and %25 for %).
Use dedicated publication directories without credentials or private documents. The allowlist prevents accidental hidden-file publication, not secrets in ordinary or explicitly approved files. Files use the same server-level OAuth and origin policy as tools. Tool visibility does not control Skill visibility; use a conditional Skill registration when callers need different procedures.…
Description from the npm listing.
- mcp
- model-context-protocol
- tanstack
- vite
- lovable
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 @lovable.dev/mcp-js alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@lovable.dev/mcp-js. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.