Skip to main content
Glama

MCP Server for Google Cloud Healthcare API

by Kartha-AI
FDA.js886 B
import fetch from 'node-fetch'; export class FDA { baseUrl = 'https://api.fda.gov/drug/ndc.json'; apiKey; constructor(apiKey) { this.apiKey = apiKey; } async getDrug(args, cache) { const { genericName } = args; const cacheKey = cache.createKey('interactions', { genericName: genericName }); const drug = await cache.getOrFetch(cacheKey, () => this.searchGenericName(genericName)); return { content: [{ type: 'text', text: JSON.stringify(drug, null, 2) }] }; } async searchGenericName(genericName) { const url = new URL(this.baseUrl); url.searchParams.append('search', `generic_name:"${genericName}"`); const response = await fetch(url); const data = await response.json(); return data.results; } }

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/Kartha-AI/google-cloud-healthcare-api-mcp'

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