imdb WebMCP
Browser tool configuration for imdb
URL Pattern: ^https?://(www\.)?imdb\.com(/.*)?$
Allowed Extra Domains: imdb.com, v3.sg.media-imdb.com
Tools (1)
imdb_search()
IMDb 电影搜索
Parameters
query
string
required
- 搜索关键词
JavaScript Handler
(params) => {
const run = async function(args) {
const query = (args.query || '').trim().toLowerCase();
if (!query) return {error: 'query is required'};
const firstChar = query[0];
const url = `https://v3.sg.media-imdb.com/suggestion/${firstChar}/${encodeURIComponent(query)}.json`;
const resp = await fetch(url);
if (!resp.ok) return {error: 'HTTP ' + resp.status};
const data = await resp.json();
const items = (data.d || []).map(item => ({
title: item.l,
year: item.y,
type: item.q,
stars: item.s,
imdbId: item.id,
imageUrl: item.i?.imageUrl,
url: item.id ? `https://www.imdb.com/title/${item.id}/` : undefined
}));
return {count: items.length, results: items};
};
return run(params || {});
}
🔌 Chrome MCP Server Extension
Use these tools with Claude, ChatGPT, and other AI assistants.
How to Use WebMCP
WebMCP tools are designed for browser extensions or automation frameworks. The browser extension matches the current URL against the pattern and executes the JavaScript handler when the tool is invoked.
API Endpoint:
GET /api/webmcp/match?url=https://www.imdb.com/...