Skip to main content
Glama

Convex MCP server

Official
by get-convex
weather.ts547 B
import { action } from "./_generated/server.js"; export const getSFWeather = action(async () => { const stationUrl = "https://api.weather.gov/stations/SFOC1"; const observationData = await ( await fetch(`${stationUrl}/observations/latest`, { headers: { "User-Agent": "Convex/1.0" }, }) ).json(); const celsius = observationData.properties.temperature.value; return { fahrenheit: Math.round(((celsius * 9) / 5 + 32) * 100) / 100, fetchedAt: Date.now(), timestamp: observationData.properties.timestamp, }; });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server