MCP ExplorerExplorer

Mcp Server Hello

@TeamDmanon 9 months ago
3 MPL-2.0
FreeCommunity
AI Systems
A hello-world server for the Model Context Protocol

Overview

What is Mcp Server Hello

mcp-server-hello is a hello-world server designed for the Model Context Protocol (MCP), which facilitates integration between large language model (LLM) applications and external data sources and tools.

Use cases

Use cases for mcp-server-hello include building AI-powered IDEs, enhancing chat interfaces, and creating custom AI workflows that require seamless integration with external data sources.

How to use

To use mcp-server-hello, clone the repository, modify the project information in Cargo.toml and src/mcp/mod.rs, adjust server handlers in the respective files, and optionally modify JSON files for prompts, resources, and tools. You can also configure it for use in Claude Desktop by editing claude_desktop_config.json.

Key features

Key features include the ability to enable MCP server functionality, display resources, prompts, and tools, and a simple application template for implementing MCP CLI server in Rust.

Where to use

undefined

Content

MCP Rust CLI server template

Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications
and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface,
or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

mcp-rs-template is a simple application template that demonstrates how to implement MCP CLI server in Rust.

How to use template?

  1. Clone the repository
  2. Modify project information in Cargo.toml and src/mcp/mod.rs
  3. Modify server handlers:
    • src/mcp/prompts.rs: prompts handlers
    • src/mcp/resources.rs: resources handlers
    • src/mcp/tools.rs: tools handlers
  4. Modify src/mcp/templates/*.json if you prefer to use json files for prompts, resources, and tools

mcp-rs-template is based on rust-rpc-router, a JSON-RPC routing
library for Rust.

CLI options

  • --mcp: Enable MCP server
  • --resources: display resources
  • --prompts: display prompts
  • --tools: display tools

How to use MCP CLI server in Claude Desktop?

  1. Edit claude_desktop_config.json: Claude Desktop -> Settings -> Developer -> Edit Config
  2. Add the following configuration to the servers section:
{
  "mcpServers": {
    "current-time": {
      "command": "mcp-rs-template",
      "args": [
        "--mcp"
      ],
      "env": {
        "API_KEY": "xxxx"
      }
    }
  }
}

If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/mcp*.log.

References

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers