home / mcp / chandanduttaind-sys mcp server
Provides a basic MCP server with arithmetic tools and a greeting resource for practical MCP interactions.
Configuration
View docs{
"mcpServers": {
"chandanduttaind-sys-mcp": {
"command": "uv",
"args": [
"run",
"mcp",
"dev",
"main.py"
]
}
}
}This MCP (Model Context Protocol) server provides a simple, extensible platform with basic tools and a greeting resource. It demonstrates core MCP capabilities and shows practical steps to set up, run, and integrate an MCP server into your development workflow.
You can use this MCP server with any MCP client to perform arithmetic operations, fetch a greeting, and manage server workflows. Start the server and interact with its tools and resources through your MCP client. When you run the server in development, enable the MCP Inspector to aid debugging and exploration.
Prerequisites: you should have a working command line environment with Python and the MCP CLI tools available. You will also need a Node-like environment if you plan to use certain tooling in your workflow.
uv init mcp-server-basic
cd mcp-server-basic
uv venv
.venv\Scripts\activate
uv add "mcp[cli]"
# or install dependencies from a requirements file
uv add -r requirements.txtIf you want to run the server for development with the MCP Inspector, start it in development mode. For a normal run, use the standard start command. If you plan to install the server for use in external environments (such as a desktop app), use the install command shown below.
uv run mcp dev main.pyuv run mcp runuv run mcp install main.pyProject files include the core server implementation and configuration files.
main.py # Main server implementation with tools and resources
pyproject.toml # Project configuration and dependenciesThis example focuses on practical MCP usage. You can adapt the provided server to include additional tools and resources, expand the greetings resource, or integrate with external MCP clients to fit your workflows.
Adds two numbers using a and b as input integers, returning their sum.
Subtracts the second integer b from the first integer a and returns the result.
Returns a personalized greeting for a given name using the greeting resource.