MCP Server
Introduction
The You.com MCP Server gives agents live web search, page extraction, citation-backed research, and finance research through the Model Context Protocol. There is one MCP server at https://api.you.com. you-research and you-finance stay off the default tool list until you connect to /mcp/research or /mcp/finance, or you name them with ?tools= or X-Allowed-Tools on /mcp.
On /mcp, the server takes the intersection of what your profile allows (the ceiling) and what you asked for (header or query param). Auth is resolved independently of tool selection, except that the free and discover profiles are both keyless and pre-capped.
Base URL: https://api.you.com. Trailing-slash POST variants work (POST /mcp/ is accepted). Other HTTP methods return 405.
Endpoints
This server has six tools: you-search, you-contents, you-research, you-finance, you-balance, and you-discover. There is no you-answer tool on this server.
Research and finance are the two tools missing from that default list. Pick a dedicated path when the URL should force one of them, or stay on /mcp and pass an allowlist when one connection should expose a mix.
Dedicated paths
POST /mcp/research forces the allowlist to you-research. POST /mcp/finance forces it to you-finance. Both use the same handler as /mcp. A ?tools= query or X-Allowed-Tools header on these URLs is ignored. The profile ceiling still applies.
Pros
- The URL names the tool (
/mcp/researchor/mcp/finance). - The client lists that one tool, so the agent is not choosing among search, contents, and research on every turn.
/mcp/researchand/mcp/financeinclude that tool even when?tools=is absent.?tools=andX-Allowed-Toolsare ignored, so they do not replace the forced tool.
Cons
- Research and finance as separate connections means two MCP server entries.
- The dedicated path does not also expose
you-search,you-contents, oryou-balance. - An incompatible profile still returns an empty tool list.
POST /mcp/finance?profile=freeis{you-finance}∩{you-search, you-discover}, so the client sees nothing.
Base endpoint plus an allowlist
POST /mcp?tools=you-search,you-research,you-finance keeps that mix on one connection. A non-empty X-Allowed-Tools header does the same job and wins over ?tools=. Omit both and the server returns the default four: you-search, you-contents, you-balance, and you-discover.
Enabled tools are still the profile ceiling intersected with the allowlist. The rules are in How Enabled Tools Are Resolved.
Pros
- One entry can include
you-search,you-research, andyou-financetogether. - One
Authorizationheader covers every tool on that entry. - The allowlist can name one tool or several.
Cons
https://api.you.com/mcpwith no?tools=and noX-Allowed-Toolsheader omits research and finance.- Each added tool is another choice the agent sees on every turn.
- The tool has to sit in the profile ceiling and the allowlist.
POST /mcp?profile=free&tools=you-researchreturns no tools.
Multiple You.com entries
In ~/.cursor/mcp.json, leave out the type field. The block below registers five You.com servers: keyless free, keyless discover, a mixed allowlist, dedicated research, and dedicated finance.
you.com_free and you.com_discover take no API key. you.com_search, you.com_research, and you.com_finance_research include research or finance, so add Authorization: Bearer <YDC_API_KEY> on those entries, or omit the header and complete OAuth 2.1 if the client starts that flow.
How Enabled Tools Are Resolved
Enabled tools = profile ceiling ∩ allowed-tools, computed on every request. A tool must appear in both sets or the client does not see it. The header, query param, and default allowlist are alternatives, not a union.
1. Profile ceiling (?profile=)
The profile is a server-managed cap.
2. Allowed-tools (client-managed)
Priority is first match, not a union:
X-Allowed-Toolsheader (comma-separated) if the value is non-empty- else
?tools=query param - else the default:
you-search,you-contents,you-balance,you-discover
The default excludes you-research and you-finance. Reach those async tools through /mcp/research and /mcp/finance, or by allowing them explicitly on /mcp.
3. Endpoint forcing
/mcp/finance and /mcp/research replace layer 2 entirely. The profile ceiling still applies.
POST /mcp/finance?profile=free is {you-finance} ∩ {you-search, you-discover} → zero tools, with no error.
Worked combinations
Allowed Tools
Using the ?tools= query parameter
Append ?tools= with a comma-separated list of tool ids. This is the simplest HTTP allowlist and works with any HTTP MCP client.
Finance only (or use POST /mcp/finance):
Search plus finance:
Research base (search plus contents, no managed research):
Scoping to you-search and you-contents keeps the slower, higher-cost you-research tool out of the list so the agent runs its own search-read-synthesize loop. The you-research agent skill pins this allowlist for that reason.
All six tools:
Using the X-Allowed-Tools header
On HTTP transport, send X-Allowed-Tools as a comma-separated allowlist. A non-empty header wins over ?tools= and over the default. Omit the header (or send it empty) to fall through to ?tools= or the default four-tool list.
This applies to Streamable HTTP connections. The local NPM package uses STDIO transport and does not use this header.
Local NPM package tool scoping
For npx @youdotcom-oss/mcp, set YDC_ALLOWED_TOOLS instead of ?tools= or X-Allowed-Tools, and YDC_PROFILE instead of ?profile=. Enabled tools are still the intersection of those two values.
YDC_PROFILE=free caps the local package to you-search and you-discover with no authentication. When YDC_ALLOWED_TOOLS is set, enabled tools are the intersection of that ceiling and the allowlist. A run with neither YDC_API_KEY nor YDC_PROFILE=free has no credentials and requests fail.
Available Tools
The server provides these six tools. Bare POST /mcp shows the default four (you-search, you-contents, you-balance, you-discover). Ask in natural language what you want to do. Your MCP client handles the tool call.
you-search
Web and news search with filtering. Use this when you need current web results, site or file-type filters, or recent news. See Search Parameter Control for model-facing parameters and host-supplied overrides.
you-contents
Extract full page content from URLs in markdown or HTML. Use this when you already have URLs and need the page for reading or processing.
you-research
Multi-step web research that returns a synthesized, citation-backed answer. Use this when you need in-depth analysis rather than raw search results. Supports configurable effort levels: lite, standard, deep, exhaustive, and frontier. Not in the default allowlist. Call POST /mcp/research, or allow you-research on /mcp.
you-finance
Finance-optimized research over a dedicated financial index: company fundamentals, equity and commodity prices, private company metrics, SEC filings, and financial news. Use this for earnings analysis, market research, due diligence, and macroeconomic questions. Not in the default allowlist. Call POST /mcp/finance, or allow you-finance on /mcp.
you-discover
Find the right You.com integration path for an agentic project: API, MCP server, SDK, docs page, plugin, or framework. Use this when you are wiring You.com into a new agent and want pointed recommendations.
you-balance
Return the remaining credit balance for the API key in use. The balance comes back in cents. Divide by 100 for USD. Always requires a user API key. Payment headers do not unlock it.
Search Parameter Control
you-search accepts parameters at two levels: the common search parameters the model sets naturally, and a deeper integration lane that gives your host application full parameter control.
Model-facing parameters (common)
These are part of the tool’s input schema, so your agent sets them conversationally—no special handling needed:
query,count,freshness,offset—the core search shapeextraction,extraction_source,crawl_timeout—page-content retrieval tuningknowledge,safesearch—result enrichment and moderationexclude_domains—domain exclusion
Inline search operators in the query (site:, lang:, loc:, filetype:) map to the same underlying parameters automatically.
Host-supplied overrides (deep integration)
For full parameter control, your host application can supply overrides out-of-band on each tools/call under the reserved _meta key com.you.com/search (or equivalently as X-Search-* HTTP headers). These overrides don’t have to be model-generated, and they always win over model-supplied arguments:
Every override field is optional. The supported set:
- Hybrid—also settable by the model:
count,extraction,extraction_source,knowledge,exclude_domains,safesearch,crawl_timeout - Host-only—settable here only, never exposed to the model:
language,country,include_domains,boost_domains
Self-describing contract via tools/list
The override contract is broadcast on the tool entry itself. A tools/list response returns the accepted fields and their constraints in tool._meta["com.you.com/search"]:
Because tools/list results are cacheable, you can fetch the contract once and reuse it to validate overrides at runtime.
X-Search-* header equivalents
Every override field has an HTTP header equivalent, sent alongside your other request headers:
Merge and validation behavior
- Precedence—field-level merge:
X-Search-*headers beat_meta, which beats model-supplied arguments - Unknown keys and headers are ignored—an invalid value on a recognized field surfaces a named tool error rather than a silent fallback
- Domain guards—
include_domainscannot be combined withexclude_domainsorboost_domains. Domain lists are capped at 500 (error, not truncation) - Inline operators—
site:,lang:, andloc:operators stay raw in the query when the corresponding explicit override is present
Authentication
Auth does not choose the tool list. A tool can be visible and still fail at call time if the request is missing credentials.
Remote server (https://api.you.com/mcp) supports:
- Keyless profiles—
freeanddiscoverskip auth.freeexposesyou-searchandyou-discover(100 queries per day).discoverexposesyou-discover. - Payment authorization—x402 headers (
PAYMENT-SIGNATUREorX-PAYMENT) and Machine Payments Protocol (Authorization: Payment) bypass local auth for keyless-capable tools:you-search,you-contents,you-research,you-finance, andyou-discover. The server forwards those headers to the upstream API.you-balancestill requires an API key. See Machine Payments for protocol details. - Bearer token—
Authorization: Bearer <YDC_API_KEY>. Get a key at you.com/platform. - OAuth 2.1—when OAuth is enabled, an MCP client that implements MCP Authorization can connect without a key. The server responds with
401 Unauthorizedand aWWW-Authenticateheader pointing at the You.com authorization server. The client opens a browser for sign-in, then retries with the issued token.
Local NPM package (npx @youdotcom-oss/mcp) uses STDIO transport:
- Set
YDC_PROFILE=freefor keyless access. The free ceiling isyou-searchandyou-discover(100 queries per day). A run with neitherYDC_API_KEYnorYDC_PROFILE=freehas no credentials and requests fail. - Set
YDC_API_KEY=<YDC_API_KEY>for keyed access. - Set
YDC_ALLOWED_TOOLSfor the allowlist. Enabled tools are still the intersection of the profile ceiling and that allowlist (see Allowed Tools).
OAuth is only available for the HTTP remote server. The local NPM package does not support OAuth.
Gotchas
- Bare
/mcpwith no header and no?tools=shows four tools.you-researchandyou-financeare absent until you allow them or use/mcp/researchand/mcp/finance. - Unknown tool names in an allowlist are dropped, not rejected.
- An empty intersection is a server with zero tools, not an error. That includes
/mcp/finance?profile=freeand any other forced-endpoint plus incompatible profile. - Header and query do not merge. A non-empty
X-Allowed-Toolsheader wins outright.
Getting Started
Choose your setup
You can discover this server in the Anthropic MCP Registry as io.github.youdotcom-oss/mcp, or configure it manually:
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
Free profile
Local NPM package
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. This URL uses the default four-tool allowlist:
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 use them for later requests.
Docs MCP Server
These docs also ship with a separate, read-only Docs MCP Server that searches this documentation—a searchDocs tool your agent can call to find any page here, with source URLs, no API key. Setup is in the Docs MCP Server guide. The Build With Agents page names that URL next to Product MCP.
Use Cases and Examples
Research and 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 and 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”
Financial research (requires you-finance)
When you-finance is enabled, your AI assistant can answer financial questions with citation-backed sources from a finance-optimized index:
- “What were the key drivers of NVIDIA’s revenue growth in fiscal year 2025?”
- “Compare the gross margins of Apple, Microsoft, and Google over the past three fiscal years”
- “What are the key risk factors disclosed in Palantir’s most recent 10-K filing?”
- “How has the Federal Reserve’s rate path affected commercial real estate valuations since 2022?”
you-finance is not in the default allowlist. Use https://api.you.com/mcp/finance, or allow it on /mcp with ?tools=you-finance or X-Allowed-Tools. On the local package, set YDC_ALLOWED_TOOLS=you-finance.
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
Local config lives in claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Paste the local NPM package template from Getting Started, then restart Claude Desktop. For setup, follow the MCP installation guide.
Cursor IDE
Config file: ~/.cursor/mcp.json. For setup, follow the MCP installation guide. Omit the type field. To run free, discover, a mixed allowlist, research, and finance as separate entries, paste the multiple You.com entries block. Keyed entries need Authorization: Bearer <YDC_API_KEY> or OAuth. ?profile=free and ?profile=discover stay keyless.
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.
Factory Droid
Quick setup (OAuth, no API key):
Droid initiates the OAuth 2.1 flow automatically. Run /mcp inside a Droid session to complete the browser sign-in.
API key with env injection (recommended for secrets):
Droid expands ${YDC_API_KEY} at connection time, so the key stays out of the config file. Add --no-oauth to prevent Droid from attempting OAuth alongside the header.
Hardcoded API key:
Free profile (no account):
Free profile exposes you-search and you-discover, 100 queries per day.
Verify: droid mcp list or /mcp inside a Droid session.
For setup, follow the Factory MCP guide.
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 Web 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
Zero tools listed
Symptoms: The server connects but tools/list is empty
Cause: The profile ceiling ∩ allowed-tools intersection is empty. Common cases: POST /mcp/finance?profile=free, POST /mcp/research?profile=discover, or an allowlist that names only tools the profile forbids.
Solutions:
- Drop
?profile=(or use a profile whose ceiling includes the tool) - On
/mcp/financeand/mcp/research, remember the path already forces the allowlist. Do not also send a conflictingfreeordiscoverprofile - Check
X-Allowed-Toolsand?tools=for a non-empty header that replaced the query string
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.
Transport Protocols
The MCP server supports two transport protocols: