MCP Server for Bing Webmaster Tools
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP (Model Context Protocol) server that provides access to Bing Webmaster Tools functionality through Claude and other MCP-compatible AI assistants.
🚀 Quick Start
For Claude Code Users:
For Claude Desktop Users:
Add to your configuration (Settings → Developer → Edit Config):
Get your API key from Bing Webmaster Tools → Settings → API Access
Table of Contents
- Features
- Installation
- Configuration
- Claude Code (Detailed Guide)
- Claude Desktop (Detailed Guide)
- Cursor
- Windsurf
- Development Setup
- Available Tools
- Usage Examples
- Development
- Contributing
- Support
Features
- 🚀 **Direct API Integration**: Simple and reliable access to Bing Webmaster Tools
- 📊 **Comprehensive Features**: Site management, traffic analytics, crawl data, and more
- 🛡️ **Error Handling**: Robust error handling with detailed logging
- 🎯 **MCP Compliant**: Full compatibility with Model Context Protocol
- 📈 **Rich Functionality**: URL submission, keyword analysis, sitemap management, and more
Installation
Prerequisites
- Node.js 16+ (for npm/npx)
- Python 3.10+ (python.org)
- Bing Webmaster API key (Get your API key)
Quick Start
The easiest way to use this MCP server is through npx (no installation required):
Global Installation (Optional)
Development Installation
For contributors and developers:
Configuration
1. Get your Bing Webmaster API Key
1. Sign in to Bing Webmaster Tools
2. Go to Settings → API Access
3. Generate your API key
2. Client Setup Instructions
Claude Code (Command Line)
Option 1: Quick Setup (Recommended)
Option 2: Using System Environment Variable
Option 3: Using Environment File
Troubleshooting
If you encounter issues, run with debug mode:
Claude Desktop
1. Open Claude Desktop
2. Go to Claude → Settings
3. Select Developer from the sidebar
4. Click Edit Config
5. Add the following to your configuration:
6. Save the file and restart Claude Desktop
**Configuration file locations:**
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json
Cursor
1. Launch Cursor
2. Open Cursor → Settings → Cursor Settings
3. Select MCP in the left sidebar
4. Click Add new global MCP server
5. Paste this configuration:
6. Restart Cursor
Windsurf
1. Open Windsurf
2. Navigate to Settings → MCP Configuration
3. Add the following configuration:
4. Restart Windsurf
Development Setup (Local Installation)
For developers working with the source code:
Claude Desktop Configuration for Development
Claude Code Configuration for Development
3. Verify Installation
After configuration, you should be able to:
- See "bing-webmaster" in your MCP servers list
- Use commands like "Show me all my sites in Bing Webmaster Tools"
- Access all Bing Webmaster Tools functions
Troubleshooting
**"Could not attach to MCP server" error:**
1. Check your API key is correct
2. Ensure you have internet connectivity
3. For Claude Desktop: Check logs in Settings → Developer → Open Logs Folder
4. For Claude Code: Run with claude --mcp-debug
**"spawn mcp-server-bing-webmaster ENOENT" error:**
- Make sure you're using npx as the command, not mcp-server-bing-webmaster
- If you have an old global installation, uninstall it: npm uninstall -g @isiahw1/mcp-server-bing-webmaster
Available Tools
Site Management
- get_sites - List all verified sites in your account
- add_site - Add a new site to Bing Webmaster Tools