Skip to content

kagi mcp: choose which tools to expose #201

Closed

Description

@grapexy

kagi mcp exposes about 30 tools, and there's no way to narrow that down (kagi mcp --help in
0.21.1 offers --profile, --default-output and --enable-mutating-tools). Agents load every
tool's description into their context, and most MCP clients can only switch a whole server on or
off. So someone who only wants search either carries every tool, including ones that need an API key
they don't have, or puts a filtering proxy in front of the server.

Proposal:

  • --tools <name,...>: expose only these tools; an unknown name is an error.
  • --exclude-tools <name,...>: expose everything except these.
  • Optionally the same through an environment variable (e.g. KAGI_MCP_TOOLS), for clients where
    changing args is awkward.

With this, an agent setup could run kagi mcp --tools kagi_search,kagi_batch_search,kagi_quick
directly, with no proxy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions