Skip to main content
Glama
server.ts976 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import pkg from "../package.json" with { type: "json" }; import tools from "./tools/index.js"; export default function createMcpServer(): McpServer { const mcpServer = new McpServer( { version: pkg.version, name: "obsidian-mcp-server", title: "Obsidian MCP Server", }, { capabilities: { logging: {}, tools: { listChanged: false }, }, instructions: ` This server provides access to Obsidian vault documents and related tools. Available tools: - obsidian_content_getter: Search, read, and analyze vault documents Available resources: - docs://{filename}: Read specific documents from the vault Environment requirements: - VAULT_DIR_PATH: Path to your Obsidian vault directory `, }, ); for (const tool of Object.values(tools)) { tool.register(mcpServer); } return mcpServer; }

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/sunub/obsidian-mcp-server'

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