Skip to main content
Glama

Convex MCP server

Official
by get-convex
tsGeneration.tsx1 kB
import { FormEvent, useState } from "react"; import { useMutation } from "convex/react"; // Note: This file is importing from the file we generated,`api`, // and not from `../convex/_generated/api` import { api } from "../api"; export default function App() { const [newMessageText, setNewMessageText] = useState(""); const sendMessage = useMutation(api.messages.send); const [name] = useState(() => "User " + Math.floor(Math.random() * 10000)); async function handleSendMessage(event: FormEvent) { event.preventDefault(); await sendMessage({ body: newMessageText, author: name }); setNewMessageText(""); } return ( <main> <h1>Send Messages</h1> <form onSubmit={handleSendMessage}> <input value={newMessageText} onChange={(event) => setNewMessageText(event.target.value)} placeholder="Write a message…" /> <input type="submit" value="Send" disabled={!newMessageText} /> </form> </main> ); }

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