MCP Server
Introduction
The You.com MCP Server brings comprehensive web search capabilities to your agentic IDE through the Model Context Protocol. Built with Bun runtime for optimal performance, it enables AI assistants to access real-time web results, news, and information directly within your development environment.
Key Features:
- 🔍 Web and news search using You.com’s unified Search API
- 🚀 Multiple deployment options: Remote server (recommended) or local NPM package
- 🔒 Secure authentication with API keys
- 🎯 Advanced search operators: site filtering, file types, language filtering, exact terms
- 🌐 Support for multiple transport protocols (Stdio and HTTP)
Quick Start
Choose your deployment method:
Recommended - No installation required. Use the hosted server at https://api.you.com/mcp with your API key.
Install via npx @youdotcom-oss/mcp to run locally on your machine with stdio transport.
Prerequisites
- Get a You.com API Key: Visit you.com/platform to obtain your API key
- Choose your IDE: Select from Claude Code, Cursor, VS Code, JetBrains, Zed, or other supported editors
Standard Configuration Templates
Most MCP clients use one of these standard configuration formats:
Remote Server (Recommended):
Local NPM Package:
<your-api-key> with your actual You.com API key from you.com/platformSetup Guides
Windsurf
Setup:
Use the standard configuration template in your Windsurf settings:
Claude Code
Quick Setup (CLI):
Manual Setup - Remote Server (Recommended):
Create or update .mcp.json in your workspace root:
Manual Setup - Local NPM Package:
<your-api-key> with your actual You.com API key from you.com/platformClaude Desktop
Configuration:
Add to your Claude Desktop MCP configuration file:
Remote Server:
Local Package:
Cursor IDE
GUI Setup (Easiest):
- Open Cursor Settings → Features → MCP
- Click ”+ Add New MCP Server”
- For remote server:
- Select “Streamable HTTP” transport
- URL:
https://api.you.com/mcp - Add header:
Authorization: Bearer <your-api-key>
- For local package:
- Select “stdio” transport
- Command:
npx - Args:
@youdotcom-oss/mcp - Environment:
YDC_API_KEY=<your-api-key>
Manual Setup:
Create .cursor/mcp.json in your project directory:
"type" field from the configuration.VS Code
Quick Setup (Command Line):
Manual Setup:
Create mcp.json in .vscode/mcp.json or your user profile:
Secure Setup with Input Prompts:
For enhanced security, prompt for the API key at runtime:
JetBrains IDEs
Configuration:
Since JetBrains IDEs only support stdio transport, use mcp-remote to bridge HTTP to stdio:
Local Package Setup:
Supported IDEs: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RubyMine, PhpStorm, and more (requires AI Assistant enabled)
Zed Editor
Setup:
Add to your Zed settings.json using "context_servers":
Remote Server (using mcp-remote):
Local Package:
Other Editors
Codex:
Edit ~/.codex/config.toml:
opencode:
Edit ~/.config/opencode/opencode.json:
Qodo Gen:
- Open Qodo Gen chat panel in VSCode or IntelliJ
- Click “Connect more tools” → ”+ Add new MCP”
- Paste the standard configuration
- Click Save
LM Studio:
Edit mcp.json in LM Studio settings using the standard configuration template.
Gemini CLI:
Follow the MCP server setup guide using the standard configuration template.
Goose:
Go to “Advanced settings” → “Extensions” → “Add custom extension” and use the standard configuration template.
Search Tool Reference
Using Natural Language: You don’t need to manually construct search queries with these parameters. Simply ask your AI assistant in natural language, and it will automatically use the tool schema to assemble the correct advanced query. For example, asking “What’s the latest news about the FCC on theverge.com” will automatically translate to a search with query: "What's the latest news about the FCC on theverge.com", site: "theverge.com", and freshness: "week".
you-search Tool
Performs comprehensive web and news search using the You.com Search API. The tool accepts natural language queries and supports advanced search parameters like site filtering, file types, language filtering, freshness, and more.
For complete parameter details and response format, see the Search API Reference.
Quick Examples:
Natural language queries are automatically translated by your AI assistant:
- “Latest machine learning tutorials on GitHub” →
query: "machine learning tutorials",site: "github.com",freshness: "week" - “PDF files about Python” →
query: "Python",fileType: "pdf" - “Spanish language articles about climate” →
query: "climate",language: "es"
Advanced Configuration
Local Development Setup
For developers who want to contribute or customize the MCP server:
External Contributors: If you’re outside of You.com and want to contribute, visit the open-source repository to open pull requests or file issues.
Prerequisites:
- Bun 1.2.21 or higher
- You.com API key
Clone and Setup:
Development Commands:
Local Integration with Claude Code:
Docker Deployment
Deploy the MCP server using Docker for production environments:
Build and Run:
Using Docker Compose:
Create docker-compose.yml:
Run with:
Configure Claude Code with Docker:
Optimization Features:
Multi-stage build with standalone binary compilation, minimal Ubuntu 22.04 base image (243MB final size), and runs as non-root user for enhanced security.
Transport Protocols
The MCP server supports two transport protocols:
Use for:
- Remote server connections
- Web applications
- Production deployments
Authentication: Bearer token in headers
Endpoint: https://api.you.com/mcp
Use for:
- Local NPM package installations
- Development environments
- IDEs that only support stdio
Authentication: Environment variable
Command: npx @youdotcom-oss/mcp
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 environment variables, verify they’re properly exported
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 - Docker: Verify the container is running with
docker ps - HTTP mode: Confirm the server is listening on the correct port
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
- 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
Resources
Official package on npm
Source code and issues
Model Context Protocol docs