mcpcraft
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., "@mcpcraftCreate a server with a tool that returns current time"
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.
mcpcraft-sdk
Build MCP servers in ~10 lines instead of ~100.
A lightweight TypeScript SDK for building Model Context Protocol (MCP) servers — zero boilerplate, full type safety, automatic schema generation.
Why mcpcraft-sdk?
The official @modelcontextprotocol/sdk requires ~100 lines of boilerplate per server. mcpcraft-sdk distills that down to ~10 lines — with automatic schema generation, type inference, and input validation.
import { createServer, tool } from "mcpcraft-sdk"
const server = createServer({ name: "hello-world" })
server.add(tool({
name: "greet",
description: "Greets a user by name",
input: {
name: { type: "string", description: "The user's name" }
},
run: async ({ name }) => {
return { message: `Hello, ${name}!` }
}
}))
server.start()That's a complete, working MCP server. ✅
Related MCP server: TypeScript MCP Server Boilerplate
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI apps (Claude, Cursor, VS Code Copilot) call functions and read data from your server — the same way HTTP lets browsers talk to APIs. MCP is to AI what HTTP is to the web.
Install
npm install mcpcraft-sdk
# or
pnpm add mcpcraft-sdk
# or
yarn add mcpcraft-sdkQuick Start
1. Create your server
import { createServer, tool } from "mcpcraft-sdk"
const server = createServer({ name: "my-first-server" })
server.add(tool({
name: "get_weather",
description: "Get the current weather for a location",
input: {
location: { type: "string", description: "City name" }
},
run: async ({ location }) => {
return { temp: 22, condition: "Sunny", city: location }
}
}))
server.start()2. Run it
npx ts-node server.ts3. Connect it
Add to your MCP client config:
{
"mcpServers": {
"my-first-server": {
"command": "node",
"args": ["dist/server.js"]
}
}
}Architecture
AI Agent (Claude, Cursor)
│
▼ JSON-RPC over stdio/SSE
MCP Client
│
▼
Your MCP Server (mcpcraft-sdk)
│
├── Tools (executable functions)
└── Resources (read-only data)API Reference
createServer(options)
Creates a new MCP server instance with automatic transport setup.
Param | Type | Required | Default | Description |
|
| Yes | — | Server name (shown to MCP clients) |
|
| No |
| SemVer version |
|
| No | — | Human-readable description |
Methods:
server.add(item)— Register a tool or resource (chainable)server.start()— Launch the server on stdio transportserver.server— Access the underlying raw SDK Server instance
tool(options)
Defines an executable function that LLMs can invoke.
Param | Type | Required | Description |
|
| Yes | Alphanumeric identifier |
|
| Yes | Explains the tool to the LLM |
|
| No | Parameter definitions |
|
| Yes | Execution handler (typed args) |
Input Schema:
input: {
query: { type: "string", description: "Search query" },
limit: { type: "number", description: "Max results", required: false },
verbose: { type: "boolean", description: "Detailed output", required: false }
}resource(options)
Defines a read-only data source identified by URI.
Param | Type | Required | Description |
|
| Yes | Resource identifier |
|
| Yes | Describes the data to the LLM |
|
| Yes | URI or URI template ( |
|
| No | MIME type (default: |
|
| Yes | Returns the resource data |
Documentation
Full documentation is available at mcpcraft.vercel.app:
License
MIT
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.
Related MCP Servers
- AlicenseDqualityCmaintenanceA simple TypeScript library for creating Model Context Protocol (MCP) servers with features like type safety, parameter validation, and a minimal code API.Last updated142MIT
- Flicense-qualityDmaintenanceA starter project designed to quickly build and deploy Model Context Protocol (MCP) servers using the TypeScript SDK and Zod for schema validation. It features example implementations for tools and resources, providing a solid foundation for custom MCP development and integration.Last updated
- AlicenseBqualityDmaintenanceA TypeScript-based boilerplate for building Model Context Protocol (MCP) servers using the official SDK and Zod. It provides a structured foundation with a decoupled architecture to simplify the creation and registration of custom MCP tools.Last updated134ISC
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server template designed for building structured tools, prompts, and resources with built-in support for HTTP and STDIO transports. It provides a standardized framework for developers to create and deploy AI-driven services using TypeScript and Zod schema validation.Last updated28
Related MCP Connectors
MCP (Model Context Protocol) server for Appwrite
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/abdunur-dev/mcpcraft'
If you have feedback or need assistance with the MCP directory API, please join our Discord server