Skip to main content
Glama

BoardGameGeek MCP Server

by attilad
index.ts984 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { fetchBggXml } from './api.js'; import * as db from './database.js'; import * as sync from './sync.js'; import { registerTools } from './tools.js'; import { z } from "zod"; // Create the MCP server const server = new McpServer( { name: "bgg-server", version: "1.0.0" }, { capabilities: { tools: {} } } ); // IMPORTANT: We now use the enhanced tools in tools.js instead of these original implementations // Register all the enhanced tools from tools.js registerTools(server); // Run the server async function main() { try { const transport = new StdioServerTransport(); await server.connect(transport); console.log("BoardGameGeek MCP Server running on stdio with SQLite persistence enabled"); } catch (error) { console.error("Error starting server:", error); process.exit(1); } } 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/attilad/bgg-mcp-server'

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