Basic information
About MCP (Modelo de Contexto de Protocolo) Server
This project build a local mcp server to fetch weather
MCP (Modelo de Contexto de Protocolo) is a MCP server in the Other category listed in the AddMCP.net directory, published by MiguelAngelGutierrezMaya. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: local-mcp, mcp-server, weather-fetcher.
Setup
{
"mcpServers": {
"local-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"-y",
"tsx",
"src/main.ts"
]
}
}
}
{
"mcpServers": {
"local-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"-y",
"tsx",
"src/main.ts"
]
}
}
}
{
"servers": {
"local-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"-y",
"tsx",
"src/main.ts"
]
}
}
}
MCP (Modelo de Contexto de Protocolo) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"local-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"-y",
"tsx",
"src/main.ts"
]
}
}
}
MCP (Modelo de Contexto de Protocolo) tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP (Modelo de Contexto de Protocolo)?
MCP (Modelo de Contexto de Protocolo) is an implementation of the Model Context Protocol built with Node.js and TypeScript. It provides a server with tools for querying weather data, intended for developers building MCP-compatible systems.
How to use MCP (Modelo de Contexto de Protocolo)?
Install dependencies with pnpm, then run pnpm dev for development, pnpm build to compile, and pnpm start for production. Use npx @modelcontextprotocol/inspector npx -y tsx src/main.ts to inspect the server.
Key features of MCP (Modelo de Contexto de Protocolo)
- TypeScript with strict mode and advanced type checking
- ESLint with flat config and Prettier formatting
- Zod schema validation library
- Weather query tools via MCP server
- Modern package management with pnpm
- Clear error handling and URL safety
Use cases of MCP (Modelo de Contexto de Protocolo)
- Building a weather data MCP server for client applications
- Developing and testing MCP protocol implementations
- Practicing TypeScript and code quality tooling setup
- Creating a reference MCP server with best practices
Frequently asked questions
1 What runtime and dependencies are required?
Node.js is the runtime, with pnpm as the package manager. TypeScript, ESLint, Prettier, and Zod are configured.
2 How can I inspect the MCP server?
Run npx @modelcontextprotocol/inspector npx -y tsx src/main.ts to launch the inspector.
3 What tools does the server provide?
The server includes tools for querying weather data, implemented in src/main.ts.
4 How do I set up the project for development?
Use pnpm dev to start in development mode, pnpm lint to check code, and pnpm format to auto-format.
5 What is the project structure?
Main entry point is src/main.ts, interfaces in src/interfaces.ts, compiled output in dist/.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In