AneshSM/mcp-server_client
If you are the rightful owner of mcp-server_client and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository implements a Model Context Protocol (MCP) server using Node.js and TypeScript.
example
A basic tool that echoes back the input message
mcp-server
This repository implements a Model Context Protocol (MCP) server using Node.js and TypeScript, following the official MCP documentation.
Project Structure
src/
— Source code for the MCP serverbuild/
— Compiled JavaScript output.github/copilot-instructions.md
— AI agent guidance and project conventionstsconfig.json
— ES modules TypeScript configurationpackage.json
— Project configuration and scripts
Technology Stack
- Node.js with ES modules
- TypeScript for type safety
tsx
for development runtime- MCP SDK for protocol implementation
- Zod for schema validation
Getting Started
-
Install dependencies:
npm install
-
Development mode with auto-reload:
npm run server:dev
-
For production:
npm run server:build npm run server:start
-
Inspect and debug the server:
npm run server:inspect
This runs the server with the MCP inspector tool, allowing you to test and debug your MCP implementation.
Development Tools
Available Scripts
npm run server:dev
- Start development server with auto-reload using tsxnpm run server:build
- Build TypeScript code to JavaScriptnpm run server:start
- Run the built servernpm run server:inspect
- Start server with MCP inspector enabled
MCP Inspector
The inspector tool provides a development interface for:
- Testing MCP tools interactively
- Inspecting JSON-RPC messages
- Verifying protocol compliance
- Debugging tool implementations
To use the inspector, run npm run server:inspect
and open the provided URL in your browser.
Claude Desktop Integration
- Install Claude Desktop
- Create/edit configuration at
%APPDATA%\Claude\claude_desktop_config.json
:{ "mcpServers": { "mcp-server": { "command": "node", "args": ["<ABSOLUTE_PATH_TO_PROJECT>/build/index.js"] } } }
- Restart Claude Desktop
Development Conventions
- Use TypeScript with ES modules for all source files
- Keep tools in separate modules under
src/tools/
- Use Zod schemas for tool parameters validation
- Use
console.error()
for logging (stdout is reserved for MCP protocol messages) - Document architectural decisions in
.github/copilot-instructions.md
MCP Tools
Currently implemented tools:
example
- A basic tool that echoes back the input message