A Model Context Protocol (MCP) server built with TypeScript that demonstrates basic MCP functionality.
- Tools: Echo messages and perform calculations
- Resources: Dynamic greeting generator
- Prompts: Help prompt for server usage
-
Install dependencies:
npm install
-
Run the server:
npm start
-
For development with auto-reload:
npm run dev
-
Build the project:
npm run build
You can test this MCP server using the MCP Inspector:
npx @modelcontextprotocol/inspector npm run startThis project includes an .vscode/mcp.json configuration file that allows you to debug this MCP server in VS Code when the MCP extension is installed.
echo: Echoes back any message you sendadd: Adds two numbers together
greeting://{name}: Generates a personalized greeting
help: Provides information about using this server
ISC