Skip to main content
Glama

mcp-server-neon

Official
resources.ts2 kB
import { ReadResourceCallback } from '@modelcontextprotocol/sdk/server/mcp.js'; import { Resource } from '@modelcontextprotocol/sdk/types.js'; async function fetchRawGithubContent(rawPath: string) { const path = rawPath.replace('/blob', ''); return fetch(`https://raw.githubusercontent.com${path}`).then((res) => res.text(), ); } export const NEON_RESOURCES = [ { name: 'neon-auth', uri: 'https://github.com/neondatabase-labs/ai-rules/blob/main/neon-auth.mdc', mimeType: 'text/plain', description: 'Neon Auth usage instructions', handler: async (url) => { const uri = url.host; const rawPath = url.pathname; const content = await fetchRawGithubContent(rawPath); return { contents: [ { uri: uri, mimeType: 'text/plain', text: content, }, ], }; }, }, { name: 'neon-serverless', uri: 'https://github.com/neondatabase-labs/ai-rules/blob/main/neon-serverless.mdc', mimeType: 'text/plain', description: 'Neon Serverless usage instructions', handler: async (url) => { const uri = url.host; const rawPath = url.pathname; const content = await fetchRawGithubContent(rawPath); return { contents: [ { uri, mimeType: 'text/plain', text: content, }, ], }; }, }, { name: 'neon-drizzle', uri: 'https://github.com/neondatabase-labs/ai-rules/blob/main/neon-drizzle.mdc', mimeType: 'text/plain', description: 'Neon Drizzle usage instructions', handler: async (url) => { const uri = url.host; const rawPath = url.pathname; const content = await fetchRawGithubContent(rawPath); return { contents: [ { uri, mimeType: 'text/plain', text: content, }, ], }; }, }, ] satisfies (Resource & { handler: ReadResourceCallback })[];

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/neondatabase-labs/mcp-server-neon'

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