Skip to main content
Glama

Notion MCP Server

by yihaoWang
config.ts883 B
import { Config } from './types.js'; import dotenv from 'dotenv'; export class ConfigManager { private static instance: ConfigManager; private config: Config; private constructor() { dotenv.config(); this.config = this.loadConfig(); } public static getInstance(): ConfigManager { if (!ConfigManager.instance) { ConfigManager.instance = new ConfigManager(); } return ConfigManager.instance; } private loadConfig(): Config { const notionApiKey = process.env.NOTION_API_KEY; if (!notionApiKey) { throw new Error('NOTION_API_KEY environment variable is required'); } return { notionApiKey, serverName: 'notion-mcp-server', serverVersion: '0.1.0' }; } public getConfig(): Config { return this.config; } public getNotionApiKey(): string { return this.config.notionApiKey; } }

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/yihaoWang/notion-mcp-server'

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