Supports publishing the MCP server as an npm package, making it easily installable and usable by others
Built with TypeScript support, allowing developers to create strongly-typed MCP tools with better developer experience
Utilizes Zod for schema validation in MCP tools, enabling type-safe input validation for tool parameters
mcp-practice
A Model Context Protocol (MCP) server built with mcp-framework.
Quick Start
Project Structure
Adding Components
The project comes with an example tool in src/tools/ExampleTool.ts
. You can add more tools using the CLI:
Tool Development
Example tool structure:
Publishing to npm
Update your package.json:
Ensure
name
is unique and follows npm naming conventionsSet appropriate
version
Add
description
,author
,license
, etc.Check
bin
points to the correct entry file
Build and test locally:
npm run build npm link mcp-practice # Test your CLI locallyLogin to npm (create account if necessary):
npm loginPublish your package:
npm publish
After publishing, users can add it to their claude desktop client (read below) or run it with npx
After Publishing
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Building and Testing
Make changes to your tools
Run
npm run build
to compileThe server will automatically load your tools on startup
Learn More
A Model Context Protocol (MCP) server that demonstrates how to build and implement custom tools for Claude using the mcp-framework.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated -325
- -securityFlicense-qualityA starter template for building Model Context Protocol (MCP) servers, enabling developers to create and add custom tools that can be integrated with Claude Desktop.Last updated -2
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.Last updated -
- -securityFlicense-qualityA server implementation of the Model Context Protocol that allows users to extend Claude's capabilities by creating custom tools that can be used within the Claude Desktop client.