drio
Open app

MCP Rust CLI server template

Source

A hello-world server for the Model Context Protocol

Catalog onlyCatalog onlySTDIO

Overview

MCP Rust CLI server is a template project designed to implement a server based on the Model Context Protocol (MCP), enabling integration between large language models (LLMs) and external data sources and tools.

To use this template, clone the repository and modify the necessary project files, including Cargo.toml, server handlers in the src/mcp/ directory, and any JSON files for prompts or resources. CLI options allow you to display resources, prompts, and tools.

  • Simple application template for MCP server implementation in Rust - Configurable through CLI options - Integration with Claude Desktop for enhanced functionalities
  1. Building AI-powered IDEs that require LLMs to interact with external tools
  2. Enhancing chat interfaces with integrated contextual intelligence
  3. Developing custom AI workflows for seamless data processing

Add to your AI client

Use these steps to connect MCP Rust CLI server template 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": {
    "mcp-server-hello-teamdman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

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": {
    "mcp-server-hello-teamdman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-hello-teamdman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-hello-teamdman": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-hello-teamdman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-hello-teamdman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-teamdman"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is an open protocol for connecting LLM applications with various external data sources and tools.

How do I integrate this server with Claude Desktop?

Refer to the configuration section in the documentation to set it up in `claude_desktop_config.json`.

Is this server extensible?

Yes, you can modify handlers and JSON files to customize its functionality.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":294,"uuid":"faf3e823-6c1b-4d00-951f-6fbafa80721b","name":"mcp-server-hello","title":"MCP Rust CLI server template","description":"A hello-world server for the Model Context Protocol","avatar_url":"https://avatars.githubusercontent.com/u/9356891?v=4","created_at":"$D2024-12-13T13:01:42.103Z","updated_at":"$D2024-12-13T15:09:09.226Z","status":"created","author_name":"TeamDman","author_avatar_url":"https://avatars.githubusercontent.com/u/9356891?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/TeamDman/mcp-server-hello","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]