MCP Server
Introduction
The You.com MCP Server is the fastest path from zero to web-grounded AI agents. Give your agents real-time access to the latest web information through the Model Context Protocol. Search current content, get up-to-date answers, and extract live web pages—whether in your IDE or deployed agentic workflows. Built on MCP to work everywhere your agents do—one integration, unlimited compatibility across IDEs, frameworks, and production systems.
Key Features:
- Free to start locally — run the NPM package without an API key or account
- Web and news search with advanced filtering
- Content extraction from URLs in markdown or HTML format
- Multiple deployment options: Remote server (recommended) or local NPM package
- Optional API key for higher rate limits
- OAuth 2.1 support on the remote server — any MCP client that implements the OAuth 2.1 authorization flow connects without managing API keys
- Works seamlessly with Windsurf, Claude Code, Cursor, VS Code, JetBrains, and other MCP-enabled IDEs
Getting started
Get up and running with the You.com MCP Server in three simple steps:
Choose your setup
You can discover this server in the Anthropic MCP Registry as io.github.youdotcom-oss/mcp, or configure it manually:
Always up-to-date with the latest features. Just add the URL
https://api.you.com/mcp to your agent’s configuration.
For self-hosting or offline development. Install via npx @youdotcom-oss/mcp to run locally on your machine with STDIO transport.
Configure your client
Choose from Windsurf, Claude Code, Cursor, VS Code, JetBrains, or other supported editors. See the Setup guides below for IDE-specific configuration.
Standard configuration templates
Remote server — requires an API key or OAuth 2.1. If your MCP client supports OAuth 2.1, connect without credentials and the authorization flow starts automatically. Otherwise, pass an API key:
Local NPM package (STDIO) — web search is available without credentials; live page crawl (you-contents) requires an API key. Set YDC_API_KEY to unlock all tools:
With an API key:
Get an API key at you.com/platform.
Test your setup
Once configured, try these natural language queries with your AI assistant:
- “Search the web for the latest news about artificial intelligence”
- “What is the capital of France?” (with web search)
- “Extract the content from https://example.com”
- “Research the pros and cons of WebAssembly vs JavaScript for performance-critical applications”
Your AI assistant will ask for permission to use the You.com MCP tools the first time, then automatically use them for future requests.
Authentication
Remote server (https://api.you.com/mcp) requires one of:
- Bearer token — pass
Authorization: Bearer <your-api-key>as a request header. Get a key at you.com/platform. - OAuth 2.1 — no API key needed. Any MCP client that implements MCP Authorization will automatically handle the flow. When you connect without credentials, the server responds with
401 Unauthorizedand aWWW-Authenticateheader pointing to the You.com authorization server. Your client opens a browser for you to sign in, then retries the connection with the issued token.
Local NPM package (npx @youdotcom-oss/mcp) uses STDIO transport:
- Free tier — run without any
YDC_API_KEYenv var. Subject to free-tier rate limits. - API key — set
YDC_API_KEY=<your-api-key>in the environment for higher rate limits.
OAuth is only available for the HTTP remote server. The local NPM package does not support OAuth.
Available tools
The You.com MCP Server provides three powerful tools that work with your AI assistant. Simply ask in natural language what you want to do—your MCP client automatically handles the rest.
you-search
Comprehensive web and news search with advanced filtering capabilities. Use this when you need to search the web for information, filter by specific sites or file types, or get the latest news on a topic.
you-contents
Extract full page content from URLs in markdown or HTML format. Use this when you need to extract and analyze content from web pages for reading or processing in your workflow.
you-research
Comprehensive web research that returns synthesized, citation-backed answers. Use this when you need in-depth analysis of a topic rather than raw search results. Supports configurable effort levels—lite, standard, deep, and exhaustive—so you can balance speed against thoroughness.
Disabling tools
When you use HTTP transport (for example https://api.you.com/mcp), you can hide tools from the MCP session by sending the X-Disable-Tools header on each request. List tool names as a comma-separated list. Names are trimmed of leading and trailing whitespace. Omit the header or leave it empty to register all tools.
Add the header in your MCP client configuration alongside any other headers (for example Authorization):
This applies to Streamable HTTP connections. The local NPM package uses STDIO transport and does not use this header.
Use cases & examples
Here are practical examples showing how to use the You.com MCP tools in your daily workflow:
Research & information gathering
Finding specific information:
- “Find recent research papers about quantum computing on arxiv.org”
- “Search for TypeScript documentation about generics”
- “Get the latest news about renewable energy from the past week”
- “Find PDF files about machine learning algorithms”
Content extraction & analysis
Extracting web content:
- “Extract the content from this blog post: https://example.com/article”
- “Get the documentation from these three URLs in markdown format”
- “Pull the HTML content from this page preserving the layout”
- “Batch extract content from these 5 documentation pages”
Combined workflows
Your AI assistant can orchestrate multiple tools to complete complex tasks:
- Research + extract: “Search for the best TypeScript tutorials, then extract the content from the top 3 results”
- Question + deep dive: “What is WebAssembly? Then search for real-world examples and extract code samples”
- News + analysis: “Find recent articles about AI regulation, then summarize the key points”
Pro tips
- Be specific: Include domains, date ranges, or file types when searching for more precise results
- Use natural language: You don’t need to memorize parameters - just describe what you want
- Ask follow-up questions: Refine results and dig deeper by asking your AI assistant to clarify or expand
- Let your agent orchestrate: For complex workflows, your AI assistant will automatically use multiple tools together
Setup guides
Windsurf
For setup, follow the MCP installation guide.
Claude Code
Quick setup (API key):
OAuth 2.1 (no API key): Connect without credentials and Claude Code will initiate the OAuth flow automatically:
For setup, follow the MCP installation guide.
Claude Desktop
For setup, follow the MCP installation guide.
Cursor IDE
For setup, follow the MCP installation guide; use the configuration template above without the type field.
To avoid conflicts, go to Settings → Agents tab and turn off Cursor’s built-in web search tool.
VS Code
Quick setup (command line):
For setup, follow the MCP installation guide; use the configuration template above.
JetBrains IDEs
For setup, follow the MCP installation guide; use the configuration template above.
Supported IDEs: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RubyMine, PhpStorm, and more (requires AI Assistant enabled)
Zed Editor
For setup, follow the MCP installation guide; use the configuration template above without the type field.
Other editors
Codex:
For setup, follow the MCP installation guide.
opencode:
For setup, follow the MCP installation guide; use the configuration template above.
LM Studio:
For setup, follow the MCP installation guide; use the configuration template above but without the type field.
Gemini CLI:
Follow the MCP server setup guide using the standard configuration template.
Additional resources
For complete details on search parameters, response formats, and advanced usage, see the Search API Reference.
Troubleshooting
API key issues
Symptoms: Authentication errors, “Invalid API key” messages
Solutions:
- Verify your API key is active at you.com/platform
- Check for extra spaces or quotes in your configuration
- Ensure the API key has the correct scopes enabled
- For the local NPM package, verify the
YDC_API_KEYenvironment variable is properly exported - If using the remote server, try OAuth 2.1 as an alternative (see the Authentication section)
OAuth issues
Symptoms: Browser window doesn’t open, OAuth flow fails, “Invalid token” errors
Solutions:
- Confirm your MCP client supports OAuth 2.1 — check your client’s documentation
- If the browser window opens but authorization fails, try signing in to you.com first in the same browser
- If the flow completes but the client still receives 401, restart the MCP client to clear cached token state
- As a fallback, use an API key from you.com/platform instead
Connection issues
Symptoms: “Connection refused”, timeout errors
Solutions:
- Remote server: Check your internet connection and firewall settings
- Local package: Ensure
npxand Node.js are installed and in your PATH - HTTP mode: Confirm the server is listening on the correct port
- Check your MCP client logs for detailed error messages
IDE integration issues
Symptoms: MCP server not appearing in IDE, tools not available
Solutions:
- Restart your IDE after configuration changes
- Check the IDE’s MCP logs for error messages (Claude Code: terminal output, Claude Desktop: application menu, Cursor: MCP server logs in settings, VS Code: output panel)
- Verify the configuration file is in the correct location
- For STDIO transport, ensure the command is executable
- Try the remote server option if local installation fails
Report an issue
If you’re experiencing issues, we’re here to help:
- Email: [email protected]
- Web: You.com Support
- GitHub: Report an issue
Pro tip: When errors occur, check your MCP client logs - they include a pre-filled mailto link with error details for easy reporting.
For contributors
Interested in contributing to the You.com MCP Server? We’d love your help!
Need technical details? Check AGENTS.md for complete development setup, architecture overview, code patterns, and testing guidelines.
- Fork the repository
- Create a feature branch following naming conventions in CONTRIBUTING.md
- Follow the code style guidelines and use conventional commits
- Write tests for your changes (maintain >80% coverage)
- Run quality checks:
bun run check && bun test - Submit a pull request with a clear description
We appreciate all contributions, whether it’s:
- Bug fixes
- New features
- Documentation improvements
- Performance optimizations
- Test coverage improvements
Transport protocols
The MCP server supports two transport protocols:
Use for:
- Remote server connections
- Web applications
- Production deployments
Authentication: Bearer token or OAuth 2.1
Endpoint: https://api.you.com/mcp
Use for:
- Local NPM package installations
- Development environments
- IDEs that only support STDIO
Authentication: YDC_API_KEY environment variable, or free tier (no env var)
Command: npx @youdotcom-oss/mcp
Resources
Official package on npm
Source code and issues
Model Context Protocol docs