Skip to main content
Glama
christophersutton

InstantDB MCP Server

index.ts1.06 kB
#!/usr/bin/env node import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { registerAllTools, } from "./tools/registeredTools.js"; class InstantDBServer { private server: Server; constructor() { this.server = new Server( { name: "instantdb-server", version: "0.1.0", }, { capabilities: { tools: {}, }, } ); this.setupToolHandlers(); // Logging errors for debugging this.server.onerror = (error) => console.error("[MCP Error]", error); process.on("SIGINT", async () => { await this.server.close(); process.exit(0); }); } private setupToolHandlers() { registerAllTools(this.server); } async run() { const transport = new StdioServerTransport(); await this.server.connect(transport); console.error("InstantDB MCP Server running on stdio"); } } const server = new InstantDBServer(); server.run().catch(console.error);

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/christophersutton/instantdb-mcp'

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