About MCP Server
MCP Server is a simple server that exposes a personalized greeting tool to compatible MCP clients. Its `hello_world` tool accepts a name and returns a greeting.
Key features
- 01Personalized greeting tool
- 02`hello_world` tool registration
- 03Name parameter input
- 04Greeting response
Use cases
- 01Testing a compatible MCP client
- 02Requesting a greeting by name
MCP support
The server exposes the `hello_world` tool to compatible MCP clients. Clients provide a name and receive a greeting.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server
This project implements a simple MCP (Multi-Channel Protocol) server that provides a greeting tool. Users can interact with the server to receive personalized greetings.
Project Structure
mcp-server
├── cmd
│ └── main.go # Entry point of the application
├── internal
│ ├── handlers
│ │ └── hello_handler.go # Handler for greeting requests
│ └── server
│ └── server.go # MCP server setup and tool registration
├── go.mod # Module dependencies
├── go.sum # Dependency checksums
└── README.md # Project documentation
Setup Instructions
-
Clone the repository:
git clone <repository-url> cd mcp-server -
Install dependencies:
go mod tidy -
Run the server:
go run cmd/main.go
Usage
Once the server is running, you can interact with it using a compatible MCP client. To greet someone, send a request to the hello_world tool with the required parameter name.
Example Request
{
"tool": "hello_world",
"arguments": {
"name": "Alice"
}
}
Example Response
{
"result": "Hello, Alice!"
}
Contributing
Feel free to submit issues or pull requests for improvements or bug fixes.
Links
- 🌐 Blog: https://blog.ratnesh-maurya.com/
- 💼 Portfolio: https://ratnesh-maurya.com/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.