Weather MCP Server
Model Context Protocol server with integrated micropayment functionality. Built with Bun, TypeScript, and the ATXP payment system for monetizing LLM tool calls.
Features
MCP Protocol: Standardized tool interface for AI assistants
Payment Integration: ATXP middleware requiring USDC micropayments per tool call
Stateless Architecture: Per-request transport isolation for scalability
Type-Safe: Strict TypeScript with Zod v3 validation
High Performance: Bun runtime for fast execution
Tech Stack
Quick Start
Architecture
Each tool call validates payment before execution. The server creates a new StreamableHTTPServerTransport per request to prevent JSON-RPC ID collisions.
Tool Registration
API
POST / - Accepts MCP JSON-RPC 2.0 requests
TypeScript Config
verbatimModuleSyntax: true- Explicittypeimports requiredmoduleResolution: bundler- Optimized for Bunstrict: true- All strict checks enablednoEmit: true- Bun handles compilation
Key Dependencies
@modelcontextprotocol/sdk- MCP implementation@atxp/express- Payment middlewarezod@^3.23.8- Required for MCP SDK compatibilitybignumber.js- Precise monetary calculations
Built with Bun 🥟