Use Edgrapi in Cursor (MCP)
Add Edgrapi to Cursor's MCP config and the agent can fetch filings, financials and government data while it writes code against them.
Add the server
Edit ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"edgrapi": {
"url": "https://api.edgrapi.com/mcp",
"headers": { "Authorization": "Bearer edgr_your_key" }
}
}
}
Restart Cursor or reload MCP servers in its settings, then check that the Edgrapi tools are listed.
You need a free Edgrapi key for the REST examples: sign up at edgrapi.com/app (50 credits, no card). Keys start with edgr_ and are shown once.
Try it
Use Edgrapi to get Tesla's insider trades from the last 90 days and write a function that flags 10b5-1 sales.