Skip to content

MCP

Four tools for an agent. Each tool searches one table and returns that JSON plus a short text page. There is no key.

Streamable HTTPNo keyRead-only

Connect

POST /mcp is Streamable HTTP. The response is stateless JSON. The tools do not call back into the client. There is no stdio product and no server-sent events.

Point the client at https://<host>/mcp. This page does not name the host. When the client sends Origin, only that host is allowed, on http and https. A missing Origin is allowed.

Client config
{
  "mcpServers": {
    "ai-social-signals": {
      "url": "https://<host>/mcp"
    }
  }
}

GET /health is this service, not a tool. It does not call the search API.

Health
{
  "status": "healthy",
  "service": "aisocialsignals-mcp"
}

Tools

Each tool is read-only. The arguments are that table's search body: match, sort, limit, offset, and one object per column. An argument the agent omits is left out. The search then uses limit 20, offset 0, and no filter on that column. Each card links to that table's columns.

Instruction

The server tells the agent this, and nothing more about the catalog.

  • Search videos, authors, hashtags, and comments. Ids are decimal strings.
  • A column you omit is not filtered, so deleted and moderated rows stay in until you set those fields.
  • Clocks are Unix time in milliseconds. 0 on a clock means not set. -1 on a count means never fetched.
  • match is full text on that table. @ inside match is rejected.
  • limit is at most 100. offset plus limit is at most 1000.

Results

Structured content is the search object, unchanged: total, limit, offset, and hits.

The text is one header, then one line per hit. No hits means the header only. {total} matches. Showing {n} from offset {offset}. n is how many hits are in this page.

A line break inside a text slot becomes a space, then the first 80 characters are kept. Numbers are printed as the JSON values, with no thousands separators. An empty caption stays empty, so the line has a blank slot. is_verified is the word true or false.

  • Videos: {id} | {description} | views {views} | likes {likes} | comments {comments}
  • Authors: {id} | @{username} | {display_name} | followers {followers} | verified {is_verified}
  • Hashtags: {id} | {title} | videos {video_count} | views {view_count}
  • Comments: {id} | video {video_id} | {text} | likes {likes}
Text page
1074175 matches. Showing 1 from offset 0.
7593329052572732702 | pardon pardon | views 307600 | likes 100 | comments 5

Errors

A failed tool sets the error flag, returns the text below, and returns no structured object. It does not raise.

  • 422, 502, 504When detail is a string, that string is the tool text. When detail is a list or object, the tool text is the compact JSON of detail.
  • Other statusThe API returned HTTP {status}.
  • Not JSONThe API returned an unreadable payload.
  • DownThe API is unavailable. This covers a connection error and a timeout.

API, Python, JavaScript.