Skip to main content
Glama
server.ts468 B
import express from "express"; import { ExpressMCP } from "../../src"; const app = express(); app.use(express.json()); app.get("/hello", (_req, res) => res.json({ message: "world" })); app.post("/order", (req, res) => res.status(201).json({ id: "o1", ...req.body }), ); const mcp = new ExpressMCP(app, { mountPath: "/mcp" }); await mcp.init(); mcp.mount("/mcp"); app.listen(3000, () => console.log("App on http://localhost:3000 → /mcp/tools, /mcp/invoke"), );

Latest Blog Posts

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/bowen31337/expressjs_mcp'

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