Hugging Face MCP server for AI agents

Let Claude, ChatGPT or your own agent read Hugging Face: 3 typed functions through one MCP server. No Hugging Face API key needed.

Functions
3
Sign-in
Not needed
Works with
MCP, HTTP, Node, Python

Connect

Just Hugging Face

An MCP server for Hugging Face alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.

https://api.bowmark.ai/mcp/site/huggingface
Every site

One MCP server for Hugging Face and every other site Bowmark covers. Your agent looks up what it needs and calls it.

https://api.bowmark.ai/mcp
Set it up in your client

Both need a Bowmark API key. The quickstart gets you one and a first result in a few minutes.

Functions

Open a function to see its arguments, what it returns and how to call it.

Read 3
  • getModelReturns one Hugging Face model by its repo id or huggingface.co url.

    Arguments

    NameTypeRequired
    idstringYes

    Returns HuggingFaceModel

    interface HuggingFaceModel {
      id: string;
      author: string;
      name: string;
      task: string | null;
      library: string | null;
      likes: number | null;
      downloads: number | null;
      trendingScore: number | null;
      license: string | null;
      tags: string[];
      createdAt: string | null;
      lastModified: string | null;
      gated: boolean | string | null;
      url: string;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/huggingface/getModel

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.huggingface.getModel("openai-community/gpt2");
  • listTrendingModelsReturns the trending models on the Hugging Face Hub right now, in the Hub's own trending order.

    Arguments

    NameTypeRequired
    taskstringNo
    limitnumberNo

    Returns HuggingFaceModel[]

    interface HuggingFaceModel {
      id: string;
      author: string;
      name: string;
      task: string | null;
      library: string | null;
      likes: number | null;
      downloads: number | null;
      trendingScore: number | null;
      license: string | null;
      tags: string[];
      createdAt: string | null;
      lastModified: string | null;
      gated: boolean | string | null;
      url: string;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/huggingface/listTrendingModels

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.huggingface.listTrendingModels({ limit: 3 });
  • searchModelsSearches every public Hugging Face model by name, author (org) or task, sorted by trending, downloads, likes, created or updated.

    Arguments

    NameTypeRequired
    argsstring | HuggingFaceSearchArgsYes
    interface HuggingFaceSearchArgs {
      query?: string;
      author?: string;
      task?: string;
      sort?: "trending" | "downloads" | "likes" | "created" | "updated";
      limit?: number;
    }

    Returns HuggingFaceModel[]

    interface HuggingFaceModel {
      id: string;
      author: string;
      name: string;
      task: string | null;
      library: string | null;
      likes: number | null;
      downloads: number | null;
      trendingScore: number | null;
      license: string | null;
      tags: string[];
      createdAt: string | null;
      lastModified: string | null;
      gated: boolean | string | null;
      url: string;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/huggingface/searchModels

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.huggingface.searchModels("llama");

Use it from code