Supports publishing the MCP server as an npm package that can be installed and used by others through the npm registry.
Provides a TypeScript-based framework for building MCP tools with type safety and validation through the project structure.
Integrates Zod schema validation to define and validate input parameters for MCP tools, ensuring type safety and proper data handling.
my-mcp-server
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 conventions - Set appropriate
version
- Add
description
,author
,license
, etc. - Check
bin
points to the correct entry file
- Ensure
- Build and test locally:
- Login to npm (create account if necessary):
- Publish your package:
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 compile - The server will automatically load your tools on startup
Learn More
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A server built with mcp-framework that allows users to extend Claude's capabilities by adding custom tools that can be used through the Claude Desktop client.
Related MCP Servers
- AsecurityAlicenseAqualityMCP server that builds itself by creating new tools as needed based on user requests (Requires restart of Claude Desktop to use newly created tools).Last updated -426PythonThe Unlicense
- -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 -235TypeScript
- AsecurityFlicenseAqualityA server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.Last updated -11
- -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.Last updated -TypeScript