Skip to main content
Glama

MCP Proxy Server

by adamwattis
index.ts830 B
#!/usr/bin/env node /** * This is a template MCP server that implements a simple notes system. * It demonstrates core MCP concepts like resources and tools by allowing: * - Listing notes as resources * - Reading individual notes * - Creating new notes via a tool * - Summarizing all notes via a prompt */ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { createServer } from "./mcp-proxy.js"; async function main() { const transport = new StdioServerTransport(); const { server, cleanup } = await createServer(); await server.connect(transport); // Cleanup on exit process.on("SIGINT", async () => { await cleanup(); await server.close(); process.exit(0); }); } main().catch((error) => { console.error("Server error:", error); process.exit(1); });

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/adamwattis/mcp-proxy-server'

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