Skip to main content
Glama

SQLite MCP Server

setup.ts925 B
import { join } from 'path'; import { homedir } from 'os'; /** * This script is used to setup the config file for the desktop app. */ const CONFIG_PATH = join( homedir(), 'Library/Application Support/Claude/claude_desktop_config.json', ); let config = { mcpServers: {} }; try { config = await Bun.file(CONFIG_PATH).json(); } catch { // Config doesn't exist yet, use default empty config } // Get absolute paths const bunPath = process.argv[0]; // Current bun executable const serverPath = join(import.meta.dir, '../src/index.ts'); // Update config config.mcpServers = { ...config.mcpServers, 'sqlite-bun': { command: bunPath, args: [serverPath], }, }; // Write updated config await Bun.write(CONFIG_PATH, JSON.stringify(config, null, 2)); console.log( '\x1b[32m✨ Successfully added sqlite-bun server to Claude MCP config! 🎉\x1b[0m', ); console.log(CONFIG_PATH.replace(homedir(), '~'));

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/jacksteamdev/mcp-sqlite-bun-server'

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