MCP Server Example

by dev-jpnobrega

1 stars
205 downloads
Not rated
GitHub

About

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.

Details

Author
dev-jpnobrega
GitHub stars
1
Downloads
205
Categories
Other

- Real‑time weather data for Brazilian cities
- Domain‑Driven Design with SOLID principles
- Dependency injection for maintainability
- Separation of domain logic and infrastructure
- Unit testing support with Jest
- Easy integration with Claude Desktop App

Install via npm (npm install), build with npm run build, and run in development mode with npm run start:dev. For use with Claude Desktop App, configure the MCP server in the claude_desktop_config.json file.

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 ✨

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->

<table>
<tr>
<td align="center"><a href="https://github.com/dev-jpnobrega"><br /><sub><b>JP. Nobrega</b></sub></a><br /><a href="https://github.com/dev-jpnobrega/api-rest/issues" title="Answering Questions">💬</a> <a href="https://github.com/dev-jpnobrega/api-rest/master#how-do-i-use" title="Documentation">📖</a> <a href="https://github.com/dev-jpnobrega/api-rest/pulls" title="Reviewed Pull Requests">👀</a> <a href="#talk-kentcdodds" title="Talks">📢</a></td>
</tr>
</table>

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.