Skip to main content
Glama

notion-mcp-server

index.ts906 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { CONFIG } from "../config/index.js"; export const server = new McpServer( { name: CONFIG.serverName, version: CONFIG.serverVersion, }, { capabilities: { resources: {}, tools: {}, }, instructions: ` MCP server for the Notion. It is used to create, update and delete Notion entities. `, } ); export async function startServer() { try { const transport = new StdioServerTransport(); await server.connect(transport); console.log( `${CONFIG.serverName} v${CONFIG.serverVersion} running on stdio` ); } catch (error) { console.error( "Server initialization error:", error instanceof Error ? error.message : String(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/awkoy/notion-mcp-server'

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