Skip to main content
Glama

Convex MCP server

Official
by get-convex
foods.ts504 B
import { v } from "convex/values"; import { internalQuery } from "./_generated/server"; // used for vector search // @snippet start fetchResults export const fetchResults = internalQuery({ args: { ids: v.array(v.id("foods")) }, handler: async (ctx, args) => { const results = []; for (const id of args.ids) { const doc = await ctx.db.get(id); if (doc === null) { continue; } results.push(doc); } return results; }, }); // @snippet end fetchResults

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