Skip to content

Serve the Finance Database icon from the MCP server - #245

Merged
JerBouma merged 1 commit into
mainfrom
feature/mcp-favicon
Oct 15, 2026
Merged

JerBouma merged 1 commit into
mainfrom
feature/mcp-favicon

Conversation

@JerBouma

Copy link
Copy Markdown
Owner

Adding https://financedatabase.jeroenbouma.com/mcp to claude.ai shows a default icon. Today / and /favicon.ico return a plain-text 404, so favicon lookups find nothing. This change gives the server the Finance Database icon.

  • site_model.py serves the icon:
    • /favicon.ico: an ICO with 16, 32 and 48 px images.
    • /favicon-32.png, /apple-touch-icon.png (180 px) and /icon.png (the full 512 px icon).
    • All are made from mcpb/finance_database_icon.png and cached for a day.
  • / is a short HTML page for browsers: a title, the icon links and a link to the MCP documentation page. MCP traffic stays on /mcp. The page doesn't redirect, so lookups don't end up at the website's own icon.
  • The server info now carries icons (MCP Implementation.icons, pointing to /icon.png) and website_url, both set in config.yaml.

The server serves no OAuth metadata, so there is no logo_uri to set. Tested with a Starlette test client on every route and on the initialization options; the full test suite passes. The icons are in the wheel. The production server needs a redeploy from main after merge.

@JerBouma
JerBouma merged commit 1c4f4a6 into main Oct 15, 2026
4 checks passed
@JerBouma
JerBouma deleted the feature/mcp-favicon branch October 15, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant