Skip to main content
Glama

Convex MCP server

Official
by get-convex
clicks.ts372 B
import type { NextApiRequest, NextApiResponse } from "next"; import { fetchQuery } from "convex/nextjs"; import { api } from "../../convex/_generated/api"; export const count = async function handler( _req: NextApiRequest, res: NextApiResponse, ) { const clicks = await fetchQuery(api.counter.get, { counterName: "clicks" }); res.status(200).json({ clicks }); };

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