mcp-framework weekly downloads statistics
By QuantGeekDev · npm · MCP servers
Framework for building Model Context Protocol (MCP) servers in Typescript
mcp-framework has 55,878 recorded weekly downloads on npm, a decrease of 8.7% over the past 30 days, ranking #750 of 3,247 tracked listings.
About mcp-framework
MCP Framework
MCP-Framework is the most productive TypeScript framework for building Model Context Protocol (MCP) servers. It provides architecture out of the box, with automatic directory-based discovery for tools, resources, and prompts. Use powerful MCP abstractions to define tools, resources, or prompts in an elegant, class-based way. The CLI gets you started in seconds.
Why mcp-framework?
- 50% less boilerplate than the official SDK
- CLI scaffolding:
mcp create my-servergets you started in seconds - Class-based tools with Zod validation and auto-generated descriptions
- Built-in authentication (JWT, API Key, OAuth 2.1)
- TypeScript-first with full type inference
- Used by developers at Vercel, Next.js, LocalStack, and BaseHub
mcp-framework vs Alternatives
| Feature | mcp-framework | Official SDK | FastMCP |
|---|---|---|---|
| CLI Scaffolding | ✅ | ❌ | ❌ |
| Class-based Tools | ✅ | ❌ | ❌ |
| Built-in Auth | ✅ | ❌ | ❌ |
| Zod Validation | ✅ | Manual | ❌ |
| TypeScript | ✅ | ✅ | ✅ |
| Description Validation | ✅ | ❌ | ❌ |
Trusted by developers at Vercel, Next.js, LocalStack, and BaseHub.
Features
- 🛠️ Automatic discovery and loading of tools, resources, and prompts
- Multiple transport support (stdio, SSE, HTTP Stream)
- TypeScript-first development with full type safety
- Built on the official MCP SDK
- Easy-to-use base classes for tools, prompts, and resources
- Out of the box authentication for SSE endpoints (OAuth 2.1, JWT, API Key)
Projects Built with MCP Framework
The following projects and services are built using MCP Framework:
A crypto tipping service that enables AI assistants to help users send cryptocurrency tips to content creators directly from their chat interface. The MCP service allows for:
- Checking wallet types for users
- Preparing cryptocurrency tips for users/agents to complete Setup instructions for various clients (Cursor, Sage, Claude Desktop) are available in their MCP Server documentation.
Support our work
Read the full docs here
Creating a repository with mcp-framework
Using the CLI (Recommended)
# Install the framework globally
npm install -g mcp-framework
# Create a new MCP server project
mcp create my-mcp-server
# Navigate to your project
cd my-mcp-server
# Your server is ready to use!
CLI Usage
The framework provides a powerful CLI for managing your MCP server projects:
Project Creation
# Create a new project
mcp create <your project name here>
# Create a new project with the new EXPERIMENTAL HTTP transport
Heads up: This will set cors allowed origin to "*", modify it in the index if you wish
mcp create <your project name here> --http --port 1337 --cors
Options:
--http: Use HTTP transport instead of default stdio
--port <number>: Specify HTTP port (default: 8080)
--cors: Enable CORS with wildcard (*) access
Adding a Tool
# Add a new tool
mcp add tool price-fetcher
Building and Validation
The framework provides comprehensive validation to ensure your tools are properly documented and functional:
# Build with automatic validation (recommended)
npm run build
# Build with custom validation settings
MCP_SKIP_TOOL_VALIDATION=false npm run build # Force validation (default)
MCP_SKIP_TOOL_VALIDATION=true npm run build # Skip validation (not recommended)
Validating Tools
# Validate all tools have proper descriptions (for Zod schemas)
mcp validate
This command checks that all tools using Zod schemas have descriptions for every field. The validation runs automatically during build, but you can also run it standalone:
- ✅ During build:
npm run buildautomatically validates tools - ✅ Standalone:
mcp validatefor manual validation - ✅ Development: Use
defineSchema()helper for immediate feedback - ✅ Runtime: Server validates tools on startup
Example validation error:
❌ Tool validation failed:
❌ PriceFetcher.js: Missing descriptions for fields in price_fetcher: symbol, currency.
All fields must have descriptions when using Zod object schemas.
Use .describe() on each field, e.g., z.string().describe("Field description")
Integrating validation into CI/CD:
{
"scripts": {
"build": "tsc && mcp-build",
"test": "jest && mcp validate",
"prepack": "npm run build && mcp validate"
}
}
Adding a Prompt
# Add a new prompt
mcp add prompt price-analysis
Adding a Resource
# Add a new resource
mcp add resource market-data
Development Workflow
-
Create your project:
mcp create my-mcp-server cd my-mcp-server -
Add tools:
mcp add tool data-fetcher mcp add tool data-processor mcp add tool report-generator -
Define your tool schemas with automatic validation:
// tools/DataFetcher.ts import { MCPTool, MCPInput as AddToolInput } from "mcp-framework";
import { z } from "zod";
const AddToolSchema = z.object({ a: z.number().describe("First number to add"), b: z.number().describe("Second number to add"), });
class AddTool extends MCPTool { name = "add"; description = "Add tool description"; schema = AddToolSchema;
async execute(input: AddToolInput<this>) {
const result = input.a + input.b;
return Result: ${result};
}
}
export default AddTool;
4. **Build with automatic validation:**
```bash
npm run build # Automatically validates schemas and compiles
-
Optional: Run standalone validation:
mcp validate # Check all tools independently -
Test your server:
node dist/index.js # Server validates tools on startup ```…
Description from the npm listing.
- mcp
- claude
- anthropic
- ai
- framework
- tools
- modelcontextprotocol
- model
- context
- protocol
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 mcp-framework 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/mcp-framework. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.