serp_list_countries
Get a table of country codes to localize Google search results for targeted country-specific queries.
Instructions
List commonly used country codes for Google search.
Shows common country codes that can be used to localize search results.
Returns:
Table of country codes and their countries.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- tools/info_tools.py:38-64 (handler)The main handler function for the serp_list_countries tool. It is decorated with @mcp.tool() which registers it as an MCP tool. Returns a formatted markdown table listing common country codes for Google search localization.
async def serp_list_countries() -> str: """List commonly used country codes for Google search. Shows common country codes that can be used to localize search results. Returns: Table of country codes and their countries. """ # Last updated: 2026-04-05 return """Common Country Codes for Google Search: | Code | Country | Code | Country | |------|-------------------|------|-------------------| | us | United States | jp | Japan | | uk | United Kingdom | kr | South Korea | | cn | China | in | India | | de | Germany | br | Brazil | | fr | France | mx | Mexico | | es | Spain | it | Italy | | ca | Canada | au | Australia | | ru | Russia | nl | Netherlands | | sg | Singapore | hk | Hong Kong | | tw | Taiwan | th | Thailand | Usage: Pass the country code to the `country` parameter. Example: serp_google_search(query="news", country="uk") """ - main.py:179-181 (registration)Explicit registration of the serp_list_countries tool name and description in the server card endpoint (line 180).
{ "name": "serp_list_countries", "description": "List supported countries", - main.py:125-125 (registration)The tool name is printed in the startup banner listing available tools.
safe_print(" - serp_list_countries") - tools/info_tools.py:38-39 (schema)The tool's signature defines no input parameters and returns a string, serving as its type schema.
async def serp_list_countries() -> str: """List commonly used country codes for Google search.