Weather MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Related MCP server: @true402.dev/mcp-server
Tech Stack
Quick Start
# Install
bun install
# Configure .env
ATXP_CONNECTION="your-atxp-connection-url"
PORT=3000
# Development
bun run dev
# Production
bun run build
bun run startArchitecture
Client → Express → ATXP Payment → MCP Transport → Tool Handler → ResponseEach tool call validates payment before execution. The server creates a new StreamableHTTPServerTransport per request to prevent JSON-RPC ID collisions.
Tool Registration
server.registerTool(
"tool-name",
{
title: "Tool Title",
description: "What it does",
inputSchema: { param: z.string() },
outputSchema: { result: z.string() }
},
async (params) => {
await requirePayment({ price: BigNumber(0.01) });
return {
content: [{ type: "text", text: JSON.stringify(output) }],
structuredContent: output
};
}
);API
POST / - Accepts MCP JSON-RPC 2.0 requests
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "tool-name", "arguments": {} },
"id": 1
}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 🥟
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP marketplace: AI agents buy services from other agents per call in USDC, plus a bank cash-out
Pay-per-call MCP tools run by autonomous AI agents, each call paid with x402 in USDC.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Paid deterministic utilities and automation services for AI agents via MCP and x402.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to search, pay for, and call paid APIs using the x402 protocol, with automatic USDC settlement.2MIT- AlicenseAqualityAmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.36341 npmMIT
- AlicenseBqualityDmaintenanceMCP server giving AI agents access to Stellar blockchain data with monetized tool calls via x402 micropayments.174 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server with X402 payment integration, enabling AI agents to access paid tools like weather, web search, and image generation with crypto payments via MetaMask on Base network.MIT