Logo.dev MCP

io.github.pvliesdonk由 GitHub 账号 pvliesdonk 发布v1.1.0更新于 Oct 25, 2026

Look up company logos and brand data via the logo.dev API.

发布方自己的服务:Official Logo.dev MCP

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 logo.dev API 获取公司标志并查询品牌数据。

可以做什么
按域名、股票代码、ISIN、加密货币符号或品牌名获取公司标志,返回图片和 URL,并支持尺寸、格式、主题和回退选项(get_logo)。将品牌或公司名解析为候选域名和标志 URL(search_brands)。查询某域名的结构化公司数据,如名称、简介、品牌色和社交链接(describe_company)。获取完整品牌资料,包括标志、品牌标记、横幅和配色(get_brand)。确认已部署服务器的版本(get_server_info)。
适用场景
适合助手在文档、网站或设计工作中需要公司标志或品牌信息时使用,也适合把品牌名解析为域名。工具只按你提供的 logo.dev 密钥注册,因此至少需要一个 logo.dev 密钥。
运行要求
以 stdio 在本地运行,通常通过 uvx 从 PyPI 包启动,或使用 Docker 镜像;也提供 HTTP 传输。get_logo 需要 logo.dev 可发布密钥(LOGODEV_MCP_PUBLISHABLE_KEY),其他品牌工具需要密钥(LOGODEV_MCP_SECRET_KEY),至少需设置一个。需要访问 logo.dev 的网络。HTTP 部署可选配置 bearer token 或 OIDC。
安装前请注意
需要 logo.dev API 密钥,属于凭据;密钥可解锁付费档工具。调用会计入你的 logo.dev 套餐,describe_company 和 get_brand 需要付费或 Pro/Enterprise 套餐。启动时服务器会探测 logo.dev 以判断套餐权限,并在本地缓存结果。品牌和域名查询会发送给 logo.dev。可选 OIDC 配置包含客户端密钥和 JWT 签名密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Logo.dev MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Logo.dev MCP

[CI] [codecov] [PyPI] [Python] [License] [Docker] [Docs] [llms.txt] [Template]

Look up company logos and brand data via the logo.dev API.

Documentation | Config wizard | PyPI | Docker

Features

  • Logo retrieval (get_logo) — fetch a company logo as an image plus URL by domain, ticker, ISIN, crypto symbol, or brand name; supports size, format, theme, greyscale, retina, and fallback options. Requires a publishable key (pk_…).
  • Brand search (search_brands) — resolve a brand or company name to candidate domains and logo URLs via typeahead or exact-match. Requires a secret key (sk_…).
  • Company description (describe_company) — return structured company data (name, description, brand colours, social links) for a domain. Requires a secret key (sk_…).
  • Full brand profile (get_brand) — return the complete brand profile (logo, brandmark, banners, colours, description) for a domain — a richer superset of describe_company. Requires a secret key (sk_…).
  • Graceful degradation — tools are registered only when the corresponding API key is present; missing-key tools are hidden from the MCP client rather than registered and failing at call time.

What you can do with it

With this server mounted in an MCP client (Claude, etc.), you can:

  • Fetch a logo — "Get the logo for stripe.com." Uses get_logo (publishable key required).
  • Identify a brand's domain — "What domain is behind the brand 'Stripe'?" Uses search_brands (secret key required).
  • Look up company info — "What colours does Stripe use in their branding?" Uses describe_company (secret key required).
  • Get the full brand kit — "Show me the complete brand profile for shopify.com." Uses get_brand (secret key required).
  • Logo by ticker — "Fetch the logo for AAPL." Uses get_logo with identifier_type=ticker (publishable key required).

Installation

From PyPI

bash
pip install logodev-mcp

If you add optional extras via the PROJECT-EXTRAS-START / PROJECT-EXTRAS-END sentinels in pyproject.toml, document them below:

From source

bash
git clone https://github.com/pvliesdonk/logodev-mcp.gitcd logodev-mcpuv sync --all-extras --all-groups

Docker

bash
docker pull ghcr.io/pvliesdonk/logodev-mcp:latest

A compose.yml ships at the repo root as a starting point — copy .env.example to .env, edit, and docker compose up -d.

To attach a remote Python debugger (development only — the protocol is unauthenticated), see Remote debugging.

Linux packages (.deb / .rpm)

Download .deb or .rpm packages from the GitHub Releases page. Both install a hardened systemd unit; env configuration is sourced from /etc/logodev-mcp/env (copy from the shipped /etc/logodev-mcp/env.example).

Claude Desktop (.mcpb bundle)

Download the .mcpb bundle from the GitHub Releases page and double-click to install, or run:

bash
mcpb install logodev-mcp-<version>.mcpb

Claude Desktop prompts for required env vars via a GUI wizard — no manual JSON editing needed.

For manual Claude Desktop configuration and setup options, see Claude Desktop deployment.

Quick start

bash
logodev-mcp serve                                # stdio transportlogodev-mcp serve --transport http --port 8000   # streamable HTTP

For library usage (embedding the domain logic without the MCP transport), import from the logodev_mcp package directly — see the project's domain modules under src/logodev_mcp/ for entry points.

Server info

The server registers a built-in get_server_info tool (via fastmcp_pvl_core.register_server_info_tool) so operators can confirm the deployed version with a single MCP call. The default response carries server_name, server_version, and core_version. Servers that talk to a remote upstream wire upstream version reporting inside the DOMAIN-UPSTREAM-START / DOMAIN-UPSTREAM-END sentinel in src/logodev_mcp/server.py — see CLAUDE.md for the wiring pattern.

Configuration

Core environment variables shared across all fastmcp-pvl-core-based services:

VariableDefaultDescription
FASTMCP_LOG_LEVELINFOLog level for FastMCP internals and app loggers (DEBUG / INFO / WARNING / ERROR). The -v CLI flag overrides to DEBUG.
FASTMCP_ENABLE_RICH_LOGGINGtrueSet to false for plain / structured JSON log output.
LOGODEV_MCP_KV_STORE_URLfile:///data/statePersistent-state backend URL for pvl-core subsystems — file:///path (survives restarts), memory:// (dev/ephemeral).

Domain-specific variables go below under Domain configuration.

Authentication

Callers authenticate via a bearer token or OIDC (mutually exclusive). See the Authentication guide for setup, mapped multi-subject tokens, OIDC, and troubleshooting.

Post-scaffold checklist

After copier copy and gh repo create --push:

  1. Fill in the DOMAIN blocks in this README (Features, What you can do with it, Domain configuration, Key design decisions) and in CLAUDE.md.
  2. Configure GitHub secrets — see below.
  3. Install dev + docs tooling: uv sync --all-extras --all-groups.
  4. Install pre-commit hooks: uv run pre-commit install.
  5. Run the gate locally: uv run pytest -x -q && uv run ruff check --fix . && uv run ruff format . && uv run mypy src/ tests/.
  6. Push the first commit — CI should be green.

GitHub secrets

CI workflows reference three repository secrets. Configure them via Settings → Secrets and variables → Actions or with gh secret set:

SecretUsed byHow to generate
RELEASE_TOKENrelease.yml, copier-update.ymlFine-grained PAT at https://github.com/settings/personal-access-tokens/new with contents: write and pull_requests: write (the copier-update cron opens PRs). Scoped to this repo.
CODECOV_TOKENci.ymlhttps://codecov.io — sign in with GitHub, add the repo, copy the upload token from the repo settings page.
CLAUDE_CODE_OAUTH_TOKENclaude.yml, claude-code-review.ymlRun claude setup-token locally and paste the result.
bash
gh secret set RELEASE_TOKENgh secret set CODECOV_TOKENgh secret set CLAUDE_CODE_OAUTH_TOKEN

GITHUB_TOKEN is auto-provided — no action needed.

Local development

The PR gate (matches CI):

bash
uv run pytest -x -q                                  # testsuv run ruff check --fix . && uv run ruff format .    # lint + formatuv run mypy src/ tests/                              # type-check

Pre-commit runs a subset of the gate on each commit; see .pre-commit-config.yaml for details, or CLAUDE.md for the full Hard PR Acceptance Gates.

Troubleshooting

Moving a scaffolded project

uv sync creates .venv/bin/* scripts with absolute shebangs pointing at the venv Python. If you move the repo after scaffolding (mv /old/path /new/path), uv run pytest fails with ModuleNotFoundError: No module named 'fastmcp' because the stale shebang resolves to a different interpreter than the venv's site-packages.

Fix:

bash
rm -rf .venvuv sync --all-extras --all-groups

uv run python -m pytest also works as a one-shot workaround (bypasses the stale entry-script shim).

uv.lock refresh after copier update

When copier update introduces new dependencies (e.g. a new extra added to pyproject.toml.jinja), CI runs uv sync --frozen which fails against a stale lockfile. Run uv lock locally and commit the refreshed uv.lock alongside accepting the copier-update PR.

Links

Domain configuration

Domain environment variables use the LOGODEV_MCP_ prefix:

VariableDefaultRequiredDescription
LOGODEV_MCP_PUBLISHABLE_KEY—Conditionallogo.dev publishable key (pk_…). Enables the get_logo tool. Omit to hide that tool.
LOGODEV_MCP_SECRET_KEY—Conditionallogo.dev secret key (sk_…). Enables search_brands, describe_company, and get_brand. Omit to hide those tools.
LOGODEV_MCP_DETECT_PLANtrueNoProbe describe/brand entitlement on startup and hide the tools the plan does not allow. Set false to skip probing and register every secret-key tool.
LOGODEV_MCP_STATE_DIR/data/stateNoDirectory for the cached plan-detection verdict (entitlements.json).

At least one key must be set for any API tool to be registered. Both keys may be set simultaneously to enable all four tools.

Which tool each logo.dev plan unlocks (get_logo/search_brands on free, describe_company on any paid plan, get_brand on Pro/Enterprise) is documented in the plans and capabilities matrix.

Key design decisions

  • Two-key gating — LOGODEV_MCP_PUBLISHABLE_KEY controls get_logo; LOGODEV_MCP_SECRET_KEY controls search_brands, describe_company, and get_brand. Tools for a missing key are never registered, not merely guarded at call time.
  • Plan detection hides unentitled tools — describe_company needs a paid plan and get_brand needs Pro/Enterprise. logo.dev has no plan endpoint, so on startup the server probes each on logo.dev and disables the tool on a 401/403. search_brands is never gated; any ambiguous probe result (timeout, 5xx, 404, 429) fails open and keeps the tool enabled. The verdict is cached under LOGODEV_MCP_STATE_DIR for 7 days (re-probed on key rotation). Disable with LOGODEV_MCP_DETECT_PLAN=false.
  • Domain logic stays FastMCP-free — src/logodev_mcp/domain.py contains the Service class and LogoDevError with no FastMCP imports; src/logodev_mcp/tools.py is the sole FastMCP layer.
  • Errors surface as strings — LogoDevError raised in domain code is caught in each tool wrapper and returned as a plain text message so the MCP client sees a readable error, not a server exception.
  • Logo tool returns URL + image — get_logo returns both the CDN URL (text) and the image bytes (image content block) unless url_only=True, in which case only the URL string is returned.

来源:README.md,提交 c5333c9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Logo 集成