TestMcpServer
A Model Context Protocol server implementation providing mathematical operations through a standardized interface. Built with TypeScript and Node.js, this server demonstrates how to create and expose tools via the Model Context Protocol specification.
Overview
TestMcpServer is a Model Context Protocol server implementation that provides mathematical operations through a standardized interface, built with TypeScript and Node.js.
To use TestMcpServer, clone the repository, run npm install, build the server with npm run build, and then run it using node build/index.js. For development, use npm run dev to watch for changes.
- Implements the Model Context Protocol for mathematical operations. - Easy to understand and manage code structure. - Allows adding new mathematical tools through a defined process.
- Creating a custom MCP server for mathematical operations.
- Adding new mathematical tools like addition and multiplication.
- Integrating with other applications that require mathematical computations.
Add to your AI client
Use these steps to connect TestMcpServer in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"testmcpserver-maikmetzger": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"testmcpserver-maikmetzger": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"testmcpserver-maikmetzger": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"testmcpserver-maikmetzger": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"testmcpserver-maikmetzger": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"testmcpserver-maikmetzger": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-testmcpserver-maikmetzger"
]
}
}
}FAQ
What programming languages are required to run TestMcpServer?
Node.js, npm, and TypeScript are required to run the server.
How can I add new tools to the server?
You can add new tools by creating a tool definition, implementing a controller, and registering it in the tool registry.
Is there a guide for setting up the server?
Yes, the repository includes a detailed guide on installation and adding new tools.