Skip to main content
Glama

Notion MCP Server

by Kazy1014
NotionClient.ts744 B
/** * NotionClient - Notion APIクライアントのラッパー */ import { Client } from '@notionhq/client'; export class NotionClient { private client: Client; constructor(apiKey: string) { if (!apiKey || apiKey.trim().length === 0) { throw new Error('Notion API key is required'); } this.client = new Client({ auth: apiKey }); } /** * Notion APIクライアントを取得 */ getClient(): Client { return this.client; } /** * APIキーの有効性を確認 */ async validateApiKey(): Promise<boolean> { try { // ユーザー情報を取得して認証を確認 await this.client.users.me({}); return true; } catch (error) { return false; } } }

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

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