Skip to main content
Glama

Convex MCP server

Official
by get-convex
imagesMetadata.ts490 B
import { v } from "convex/values"; import { query } from "./_generated/server"; // @snippet start getMetadata export const getMetadata = query({ args: { storageId: v.id("_storage"), }, handler: async (ctx, args) => { return await ctx.db.system.get(args.storageId); }, }); export const listAllFiles = query({ handler: async (ctx) => { // You can use .paginate() as well return await ctx.db.system.query("_storage").collect(); }, }); // @snippet end getMetadata

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