Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SvechaPVL/yandex-mcp
/ functions
Functions
285 in github.com/SvechaPVL/yandex-mcp
⨍
Functions
285
◇
Types & classes
167
↳
Endpoints
68
↓ 753 callers
Method
get
(self, url, params=None, headers=None)
tests/test_webmaster_v4_write.py:52
↓ 123 callers
Function
handle_api_error
Format API errors into actionable messages.
yandex_mcp/utils.py:6
↓ 62 callers
Method
direct_request
Make a request to Yandex Direct API.
yandex_mcp/client.py:56
↓ 43 callers
Method
metrika_request
Make a request to Yandex Metrika API.
yandex_mcp/client.py:93
↓ 20 callers
Method
webmaster_request
Make a request to Yandex Webmaster API v4. ``endpoint`` is the path after the API version, e.g. ``/user/{user_id}/hosts/``. List valu
yandex_mcp/client.py:170
↓ 12 callers
Method
webmaster_user_id
Resolve the Webmaster UserID of the token owner.
yandex_mcp/client.py:218
↓ 7 callers
Method
wordstat_request
Make a request to Wordstat via Yandex Cloud Search API v2. ``endpoint`` is the path after ``/v2/wordstat``, e.g. ``/topRequests``. Au
yandex_mcp/client.py:133
↓ 6 callers
Function
map_devices
Map v1 device names to v2 enum values (v2 names pass through).
yandex_mcp/tools/wordstat.py:58
↓ 6 callers
Function
map_period
Map v1 period name to the v2 enum value (v2 names pass through).
yandex_mcp/tools/wordstat.py:75
↓ 6 callers
Function
map_region_type
Map v1 region_type to the v2 enum value (v2 names pass through).
yandex_mcp/tools/wordstat.py:87
↓ 5 callers
Method
json
(self)
tests/test_webmaster_v4_write.py:34
↓ 5 callers
Method
post
(self, url, params=None, json=None, headers=None)
tests/test_webmaster_v4_write.py:56
↓ 5 callers
Method
raise_for_status
(self)
tests/test_webmaster_v4_write.py:28
↓ 5 callers
Function
register_manage_tool
Register a single MCP manage-operation tool (suspend/resume/archive/unarchive/delete). This factory replaces ~25 lines of boilerplate per action
yandex_mcp/tools/direct/_helpers.py:126
↓ 4 callers
Function
map_top_requests_response
v2 {results, associations, totalCount} -> v1 topRequests shape.
yandex_mcp/tools/wordstat.py:116
↓ 4 callers
Function
num
(key: str, decimals: int = 0)
yandex_mcp/formatters/webmaster.py:42
↓ 3 callers
Function
date_to_rfc3339
v2 expects google.protobuf.Timestamp (RFC3339), not bare YYYY-MM-DD.
yandex_mcp/tools/wordstat.py:99
↓ 3 callers
Function
format_webmaster_sitemaps_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:74
↓ 3 callers
Function
format_webmaster_verification_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:58
↓ 3 callers
Function
map_dynamics_response
v2 {results: [{date, count, share}]} -> v1 {dynamics: [...]}.
yandex_mcp/tools/wordstat.py:126
↓ 3 callers
Function
map_regions_response
v2 {results: [{region, ...}]} -> v1 {regions: [{regionId, ...}]}.
yandex_mcp/tools/wordstat.py:141
↓ 2 callers
Function
_format_single_top_requests
(data: Dict[str, Any])
yandex_mcp/formatters/wordstat.py:6
↓ 2 callers
Method
_get_direct_token
Get token for Direct API.
yandex_mcp/client.py:34
↓ 2 callers
Method
_get_direct_url
Get Direct API URL based on configuration.
yandex_mcp/client.py:50
↓ 2 callers
Function
_phrase_items
(items)
yandex_mcp/tools/wordstat.py:109
↓ 2 callers
Method
delete
(self, url, params=None, headers=None)
tests/test_webmaster_v4_write.py:62
↓ 2 callers
Function
format_webmaster_recrawl_quota_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:92
↓ 2 callers
Function
format_wordstat_dynamics_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/wordstat.py:37
↓ 2 callers
Function
format_wordstat_regions_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/wordstat.py:49
↓ 2 callers
Function
format_wordstat_top_requests_markdown
(data: Union[Dict[str, Any], List[Dict[str, Any]]])
yandex_mcp/formatters/wordstat.py:25
↓ 1 callers
Method
_get_metrika_token
Get token for Metrika API.
yandex_mcp/client.py:38
↓ 1 callers
Method
_get_webmaster_token
Get token for Webmaster API.
yandex_mcp/client.py:46
↓ 1 callers
Method
_get_wordstat_api_key
Get the Yandex Cloud Api-Key for the Wordstat (Search API v2).
yandex_mcp/client.py:42
↓ 1 callers
Function
_make_handler
(svc: str, act: str, ent: str, ids_attr: str, model: type)
yandex_mcp/tools/direct/_helpers.py:198
↓ 1 callers
Function
format_action_response
Build a human-readable response string for a manage action. Parameters ---------- action: Action name (e.g. ``"suspend"``). e
yandex_mcp/tools/direct/_helpers.py:95
↓ 1 callers
Function
format_adgroups_markdown
Format ad groups list as markdown.
yandex_mcp/formatters/direct.py:33
↓ 1 callers
Function
format_ads_markdown
Format ads list as markdown.
yandex_mcp/formatters/direct.py:54
↓ 1 callers
Function
format_campaigns_markdown
Format campaigns list as markdown.
yandex_mcp/formatters/direct.py:6
↓ 1 callers
Function
format_keywords_markdown
Format keywords list as markdown.
yandex_mcp/formatters/direct.py:80
↓ 1 callers
Function
format_metrika_comparison_markdown
Format Metrika comparison report as markdown.
yandex_mcp/formatters/metrika.py:151
↓ 1 callers
Function
format_metrika_counters_markdown
Format Metrika counters as markdown.
yandex_mcp/formatters/metrika.py:6
↓ 1 callers
Function
format_metrika_drilldown_markdown
Format Metrika drilldown report as markdown.
yandex_mcp/formatters/metrika.py:186
↓ 1 callers
Function
format_metrika_filters_markdown
Format Metrika filters as markdown.
yandex_mcp/formatters/metrika.py:113
↓ 1 callers
Function
format_metrika_goals_markdown
Format Metrika goals as markdown.
yandex_mcp/formatters/metrika.py:76
↓ 1 callers
Function
format_metrika_grants_markdown
Format Metrika access grants as markdown.
yandex_mcp/formatters/metrika.py:132
↓ 1 callers
Function
format_metrika_report_markdown
Format Metrika report data as markdown.
yandex_mcp/formatters/metrika.py:29
↓ 1 callers
Function
format_metrika_segments_markdown
Format Metrika segments as markdown.
yandex_mcp/formatters/metrika.py:97
↓ 1 callers
Function
format_webmaster_hosts_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:6
↓ 1 callers
Function
format_webmaster_popular_queries_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:30
↓ 1 callers
Function
format_webmaster_summary_markdown
(data: Dict[str, Any])
yandex_mcp/formatters/webmaster.py:21
↓ 1 callers
Function
parse_action_results
Parse a Direct API manage-action response into success IDs and errors. The Direct API returns results in the shape:: {"result": {"<Actio
yandex_mcp/tools/direct/_helpers.py:52
↓ 1 callers
Function
register_all_tools
Register all Direct, Metrika, Wordstat, and Webmaster tools.
yandex_mcp/tools/__init__.py:6
↓ 1 callers
Function
register_direct_tools
Register all Yandex Direct tools.
yandex_mcp/tools/direct/__init__.py:6
↓ 1 callers
Function
register_metrika_tools
Register all Yandex Metrika tools.
yandex_mcp/tools/metrika/__init__.py:6
↓ 1 callers
Function
run
Run the MCP server.
yandex_mcp/__init__.py:21
Method
__aenter__
(self)
tests/test_wordstat_v2.py:154
Method
__aenter__
(self)
tests/test_webmaster_v4_write.py:46
Method
__aexit__
(self, *exc)
tests/test_wordstat_v2.py:157
Method
__aexit__
(self, *exc)
tests/test_webmaster_v4_write.py:49
Method
__init__
(self, *args, **kwargs)
tests/test_wordstat_v2.py:151
Method
__init__
(self, status_code=200, payload=None, content=b"{}")
tests/test_webmaster_v4_write.py:23
Method
__init__
(self, *args, **kwargs)
tests/test_webmaster_v4_write.py:43
Method
__init__
(self)
yandex_mcp/client.py:20
Function
_set_dummy_token
Provide a dummy token so tools can register without real credentials.
tests/conftest.py:8
Function
_validate_host_id
(value: str)
yandex_mcp/models/webmaster.py:26
Function
_validate_host_url
(value: str)
yandex_mcp/models/webmaster.py:44
Function
_validate_sitemap_id
(value: str)
yandex_mcp/models/webmaster.py:35
Function
direct_add_audience_target
Add an audience target to an ad group.
yandex_mcp/tools/direct/retargeting.py:286
Function
direct_add_bid_modifier
Add a bid modifier. Bid modifier values: - 0 = disable (no impressions) - 50 = decrease bid by 50% - 100 = no change
yandex_mcp/tools/direct/bidmodifiers.py:117
Function
direct_add_callouts
Create new callout extensions (уточнения). Each callout text max 25 characters. Up to 50 callouts per ad.
yandex_mcp/tools/direct/adextensions.py:101
Function
direct_add_feed
Add a feed (YML/CSV) to Yandex Direct. Supports password-protected feeds via HTTP Basic Auth. Business types: RETAIL, HOTELS, REALTY,
yandex_mcp/tools/direct/feeds.py:66
Function
direct_add_keywords
Add keywords to an ad group. Creates new keywords with optional bid settings.
yandex_mcp/tools/direct/keywords.py:77
Function
direct_add_negative_keyword_shared_set
Create a new negative keyword shared set. After creating, link it to campaigns using direct_link_shared_set_to_campaign. Max 20 sets
yandex_mcp/tools/direct/negative_keywords_shared.py:91
Function
direct_add_retargeting_list
Create a new retargeting list. Rules are grouped: OR between groups, AND within each group. Each rule references a Metrika goal ID.
yandex_mcp/tools/direct/retargeting.py:88
Function
direct_add_sitelinks
Create a new sitelink set. Creates a set of sitelinks that can be attached to ads. Each set can contain 1-8 sitelinks. Max to
yandex_mcp/tools/direct/sitelinks.py:86
Function
direct_add_smart_ad_target
Add a targeting filter to a smart ad group. Defines which product offers from the feed are used to generate smart banners. Without co
yandex_mcp/tools/direct/smartadtargets.py:63
Function
direct_add_vcard
Create a new vCard. VCards display business contact info in ads. Phone format: +7-495-123-45-67
yandex_mcp/tools/direct/vcards.py:91
Function
direct_check_all_changes
Check all changes in the account since a timestamp. Returns IDs of modified campaigns, ad groups, and ads. Useful for full account sy
yandex_mcp/tools/direct/clients.py:184
Function
direct_check_campaign_changes
Check if campaigns have changed since a given timestamp. Useful for incremental sync - only fetch campaigns that changed. Returns cam
yandex_mcp/tools/direct/clients.py:125
Function
direct_create_adgroup
Create a new ad group in a campaign. Creates an ad group with specified name and targeting regions.
yandex_mcp/tools/direct/adgroups.py:73
Function
direct_create_campaign
Create a new advertising campaign. Creates TEXT_CAMPAIGN or CPM_BANNER_CAMPAIGN with specified settings. For РСЯ campaigns, use CPM_B
yandex_mcp/tools/direct/campaigns.py:243
Function
direct_create_dynamic_ad
Create a dynamic text ad in a dynamic ad group. Title is auto-generated from feed data. Only text needs to be specified. Used
yandex_mcp/tools/direct/ads.py:194
Function
direct_create_image_ad
Create a new image ad (banner) in an ad group. Creates an IMAGE_AD with the given image hash and landing page. Use image hashes from
yandex_mcp/tools/direct/ads.py:146
Function
direct_create_shopping_ad
Create a shopping ad (товарное объявление) in a UnifiedCampaign group. Shopping ads use product feed data to auto-generate ads. Repla
yandex_mcp/tools/direct/ads.py:249
Function
direct_create_text_ad
Create a new text ad in an ad group. Creates a text ad with title, text, and landing page URL. The ad will be sent for moderation aut
yandex_mcp/tools/direct/ads.py:92
Function
direct_create_video_creative
Create a VIDEO_EXTENSION_CREATIVE from an uploaded video. The video must have status READY (check with direct_get_advideos). Returns
yandex_mcp/tools/direct/creatives.py:44
Function
direct_delete_bid_modifiers
Delete bid modifiers.
yandex_mcp/tools/direct/bidmodifiers.py:233
Function
direct_delete_feeds
Delete feeds permanently. WARNING: Irreversible.
yandex_mcp/tools/direct/feeds.py:245
Function
direct_delete_images
Delete ad images by their hashes. WARNING: Irreversible. Only images not associated with any ad can be deleted. Use direct_get_images
yandex_mcp/tools/direct/images.py:146
Function
direct_delete_negative_keyword_shared_sets
Delete negative keyword shared sets. WARNING: Deleting a shared set will unlink it from all associated campaigns.
yandex_mcp/tools/direct/negative_keywords_shared.py:177
Function
direct_delete_retargeting_lists
Delete retargeting lists.
yandex_mcp/tools/direct/retargeting.py:196
Function
direct_delete_sitelinks
Delete sitelink sets. WARNING: Deleted sitelink sets will be removed from all ads using them.
yandex_mcp/tools/direct/sitelinks.py:134
Function
direct_delete_vcards
Delete vCards.
yandex_mcp/tools/direct/vcards.py:156
Function
direct_get_adextensions
Get ad extensions (callouts/уточнения) from Yandex Direct.
yandex_mcp/tools/direct/adextensions.py:52
Function
direct_get_adgroups
Get list of ad groups from Yandex Direct. Retrieves ad groups with their settings and targeting information.
yandex_mcp/tools/direct/adgroups.py:30
Function
direct_get_ads
Get list of ads from Yandex Direct. Retrieves ads with their content and moderation status.
yandex_mcp/tools/direct/ads.py:35
Function
direct_get_advideos
Get uploaded ad videos and their processing status. Statuses: NEW, CONVERTING, READY, ERROR. Video must be READY before creating a cr
yandex_mcp/tools/direct/advideos.py:109
Function
direct_get_audience_targets
Get audience targets from Yandex Direct. Audience targets link retargeting lists to ad groups.
yandex_mcp/tools/direct/retargeting.py:227
Function
direct_get_bid_modifiers
Get bid modifiers from Yandex Direct. Bid modifiers adjust bids based on: - Device type (mobile/desktop) - Demographics (age,
yandex_mcp/tools/direct/bidmodifiers.py:31
Function
direct_get_campaigns
Get list of advertising campaigns from Yandex Direct. Retrieves campaigns with their settings, statistics, and current status. Suppor
yandex_mcp/tools/direct/campaigns.py:33
next →
1–100 of 285, ranked by callers