Cursor¶
Configure¶
Create .cursor/mcp.json in your project, or ~/.cursor/mcp.json to use the server in
every project:
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": ["yfinance-agent-mcp"],
"env": {
"YFINANCE_AGENT_MCP_RATE_LIMIT": "2"
}
}
}
}
The env block is optional (configuration).
Verify¶
Open Cursor Settings → MCP. yfinance should appear with a green status and 13 tools.
In the agent chat, ask "Compare AAPL and MSFT on valuation and 6-month trend"; Cursor asks
before running each tool unless you allow it.
Troubleshooting¶
- A red status usually means
uvxwas not found or failed. Runuvx yfinance-agent-mcp --versionin a terminal, and use the full path touvxin"command"if needed. - See troubleshooting for tool errors.