DEV Community

Hanieh Zahiremami
Hanieh Zahiremami

Posted on • Edited on

1 1

Built a stock analyzer using MCP Agents.

I built a financial analyzer agent with MCP Agent that pulls stock-related data from the web, verifies the quality of the information, analyzes it, and generates a structured markdown report. (My partner needed one, so I built it to help him make better decisions lol.) It’s fully automated and runs locally using MCP servers for fetching data, evaluating quality, and writing output to disk.

At first, the results weren’t great. The data was inconsistent, and the reports felt shallow. So I added an EvaluatorOptimizer, a function that loops between the research agent and an evaluator until the output hits a high-quality threshold. That one change made a huge difference.

In my opinion, the real strength of this setup is the orchestrator. It controls the entire flow: when to fetch more data, when to re-run evaluations, and how to pass clean input to the analysis and reporting agents. Without it, coordinating everything would’ve been a mess. Also, it’s always fun watching the logs and seeing how the LLM thinks!

Take a look and let me know what you think.
Image description

AWS Security LIVE! Stream

Streaming live from AWS re:Inforce

What’s next in cybersecurity? Find out live from re:Inforce on Security LIVE!

Learn More

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →