AneshSM/mcp-server
3.2
If you are the rightful owner of mcp-server 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.
Tools
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
— TypeScript configuration for ES modules
Getting Started
-
Install dependencies (after initializing
package.json
):npm install
-
Development mode with auto-reload:
npm run dev
-
For production:
npm run build npm start
Integration with Claude Desktop
- 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
Conventions
- Use TypeScript and ES modules for all source files in
src/
- 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
For MCP protocol details, see: Model Context Protocol Documentation