概览
What is mcp_server?
mcp_server is a Model Context Protocol (MCP) server built with the mcp-framework. It provides a structured way to create and run custom tools that can be used with Claude Desktop.
How to use mcp_server?
Install dependencies with npm install, then build the project with npm run build. After building, configure your Claude Desktop client to point to the server, either locally via a direct path to dist/index.js or after publishing via npx mcp_server.
Key features of mcp_server
- Built using the mcp-framework for MCP tool development.
- Includes an example tool to get started quickly.
- CLI command
mcp add toolto add new tools. - Supports local development and npm publishing.
- Ready to integrate with Claude Desktop.
Use cases of mcp_server
- Develop custom MCP tools for use with Claude Desktop.
- Publish a reusable MCP server on npm for others to use.
- Create tools for data processing, API integration, or file handling.
FAQ from mcp_server
What tools come with mcp_server by default?
The server includes one example tool located at src/tools/ExampleTool.ts.
How do I add a new tool to mcp_server?
Use the CLI command mcp add tool <name> from the project root, e.g., mcp add tool data-processor.
How do I run mcp_server with Claude Desktop?
Add the server configuration to your Claude Desktop config file. For local development, use "command": "node" with the absolute path to dist/index.js. After publishing, use "command": "npx" with the package name.
How do I publish mcp_server to npm?
Update package.json with a unique name, version, and other metadata. Build the project, log in to npm with npm login, then publish with npm publish.