mcpField
M
MCP Server Example

MCP Server Example

Local
github.com/dev-jpnobregaMaps & Travel1Updated 78w ago

About MCP Server Example

MCP Server Example is a weather MCP server for real-time information about Brazilian cities. It is structured around domain-driven design, SOLID principles, and dependency injection, with a separation between domain logic and infrastructure.

Key features

  1. 01Real-time weather for Brazilian cities
  2. 02Domain-driven design structure
  3. 03Dependency injection
  4. 04Separate domain and infrastructure layers
  5. 05Jest unit tests

Use cases

  1. 01Check current weather in Brazilian cities
  2. 02Explore a domain-driven MCP server structure
  3. 03Run unit tests while developing the server

MCP support

The project is an MCP server for weather information about Brazilian cities and can be configured for use with Claude Desktop.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server Example

A Domain-Driven MCP server that provides real-time weather information for Brazilian cities. Designed with SOLID principles, it leverages dependency injection and separates domain logic from infrastructure services to ensure scalability, maintainability, and testability. Model Context Protocol concept

Installation

Use the package manager npm to install MCP server.

npm install

Unit Tests

Use the JEST to unit tests.

npm run test

Building

To build the application.

npm run build

Running DEV with @modelcontextprotocol/inpector

  • Docs infos in link
  • Running dev.
npm run start:dev

alt text

Simple use with Claude Desktop APP

  • Dowloading Claude Desktop APP in link
  • Config your MCP server in Claude APP MCP config (file claude_desktop_config.json) more infos.

alt text

Contributing

If you've ever wanted to contribute to open source, and a great cause, now is your chance!

See the contributing docs for more information

Contributors ✨

README image
JP. Nobrega

💬 📖 👀 📢

License

MIT

Comments

Markdown supported

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.