Skip to main content
Glama
resources.js1.1 kB
import { getTrendingMovies } from './tmdb-api.js'; export const resources = [ { uri: "tmdb://info", name: "TMDB Info", description: "Information about The Movie Database API", mimeType: "text/plain", }, { uri: "tmdb://trending", name: "Trending Movies", description: "Currently trending movies on TMDB", mimeType: "application/json", } ]; export const resourceHandlers = { "tmdb://info": async () => ({ contents: [ { uri: "tmdb://info", text: "The Movie Database (TMDB) is a popular, user-editable database for movies and TV shows. This MCP server provides access to TMDB data through resources, prompts, and tools.", }, ], }), "tmdb://trending": async () => { const trendingData = await getTrendingMovies(); return { contents: [ { uri: "tmdb://trending", text: JSON.stringify(trendingData, null, 2), }, ], }; }, };

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/ShubhanshuSondhiya/MCP-TMDB'

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