Skip to main content
Glama
index.ts•887 B
import { createMcpServer } from '@modelcontextprotocol/sdk'; import { searchContent } from './tools/search-content'; import { allSpaces } from './tools/all-spaces'; import { getPagesInSpace } from './tools/get-pages-in-space'; import { getPageById } from './tools/get-page-by-id'; import { createPage } from './tools/create-page'; import { updatePage } from './tools/update-page'; const PORT = process.env.PORT || 3000; const HOST = process.env.HOST || 'localhost'; async function main() { const server = createMcpServer({ tools: [ searchContent, allSpaces, getPagesInSpace, getPageById, createPage, updatePage ] }); await server.listen(Number(PORT), HOST); console.log(`🚀 Confluence MCP server started at http://${HOST}:${PORT}`); } main().catch(err => { console.error('Failed to start server:', err); process.exit(1); });

Latest Blog Posts

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/minhoyooDEV/confluence-mcp-server'

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