Skip to main content
Glama
vihaanshahh

cosmos-mcp

by vihaanshahh

cosmos-mcp

MCP server for searching cosmos.so. Returns direct CDN image URLs — no page scraping.

Used by TVLR to find destination photos for places.json.

Install

git clone https://github.com/vihaanshahh/cosmos-mcp.git
cd cosmos-mcp
npm install

Related MCP server: Wikimedia-Search-Images

Cursor / Claude Code

{
  "mcpServers": {
    "cosmos": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/cosmos-mcp/dist/index.js"]
    }
  }
}

Tools

Tool

What it does

search_images

Search by keyword. Filter by color, content type, sort order.

search_collections

Search curated boards.

get_element

Look up one element by ID or cosmos.so/e/... URL.

search_images

{
  "query": "Tokyo skyline dusk",
  "limit": 10,
  "exclude_ai": true,
  "order": "RELEVANT",
  "color": "FF5500"
}

Returns results[].media_id, thumbnail_url, image_url, caption.

get_element

{ "element_id": 1169598936 }

Or pass a full share URL.

TVLR workflow

  1. search_images({ query: "Porto azulejos tiles", exclude_ai: true })

  2. Pick a result → copy UUID from CDN URL → set as cosmosId in places.json

  3. URL pattern: https://cdn.cosmos.so/<cosmosId>?format=webp&w=800

Dev

npm run build
npm run dev

Notes

  • No API key. Uses Cosmos's public GraphQL endpoint.

  • Not an official Cosmos API — same backend the website uses.

  • Typical search: ~300ms.

License

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/vihaanshahh/cosmos-mcp'

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