Skip to main content
A company research agent needs more than a plausible summary. It needs financial figures tied to a reporting period, company background from an identifiable source, and links you can follow to check its claims. We’ll build one in Langflow using Dataville’s MCP server. Using Walmart as our example, we’ll combine Wikipedia context with SEC EDGAR filings, generate a cited report, and inspect the tool responses to see where the numbers and dates came from. Want to run the example first? The companion repository includes the flow, agent instructions, and a sample report. The demo video builds the flow in this guide, from the Simple Agent template to the finished Walmart report. Before it ends, it opens Walmart’s 10-K on the SEC website to check the figures in the report.

Before you start

You’ll need:
  1. Langflow. Install Langflow Desktop
  2. A model provider (from OpenAI, Anthropic, OpenRouter, etc)
  3. A Dataville API key for regular use. You can try the example without one, then get a key from the API Keys page when you’re ready.
Without a key, data lookups use the anonymous allowance of 50 per 24 hours per IP address, shared by everyone on that address. See Usage limits for the limits and Create an API key for authentication details.

Step 1: Connect Dataville to Langflow

1

Create a flow

Open Langflow and create a new flow. For this example, we’ll start from the Simple Agent template.
2

Configure agent

The template includes Web Search and URL tools. Remove them for this example so the agent gets its source material through Dataville. Keep Chat Input connected to the Agent, and the Agent’s response connected to Chat Output.Choose your model and add its provider key. The run in this guide used Claude Opus 4.7 through OpenRouter. You can use another tool-calling model supported by Langflow, but the wording and tool choices may differ.
3

Add MCP Server

Open MCP in the left sidebar and click Add MCP Server.Select Streamable HTTP/SSE and enter the connection details:Replace YOUR_API_KEY with your Dataville key, or leave out the header to try anonymous access.Click Add Server. The Connect an AI tool page is the setup reference if you need to check the configuration later.

Step 2: Give the agent access to Dataville tools

1

Import MCP Server

Drag the server from the MCP sidebar onto the canvas. Langflow adds an MCP Tools component for that server.Clean Shot 2026 10 27 At 13 29 44
2

Enable Tool Mode

Select the component and turn on Tool Mode in its header menu. The component exposes a Toolset output, which you connect to the Tools input on the Agent. The connection makes the tools available to the agent.Clean Shot 2026 10 27 At 13 31 48
3

Add Agent Instructions

Agent instructions help tell the model when to use them and what to return. For this example, we want Wikipedia background kept separate from SEC-reported financials, with a citation for each section.Paste these instructions into Agent Instructions:
The 10-K response used in this example also contains recent filings and insider transactions, so the agent doesn’t need a Form 4 lookup. It still searches for the 10-Q to get the interim financials. The insider activity in the report comes from the insider_transactions field in the lookup’s metadata.

Step 3: Run the company research agent

1

Generate report

Open the Playground and send this prompt:
The chat history shows the agent calling Dataville for the source material.
2

Check the tool calls

If you click on one of the agent tool calls, you can inspect the arguments used for the query. In this instance the agent searched for Walmart 10-K in the edgar data source.To learn more about the JSON response, including the metadata each source returns, see Response format.
3

Check the report

The report includes a company snapshot, financials, recent filings, insider activity, and Wikipedia context. Each section cites the source, date, and URL from the result.To validate the report, follow the citations provided by the agent and confirm the numbers found in the SEC filings match up with the information in the report.

Get the Langflow example project

The datavilleorg/langflow-company-research repository contains the flow, agent instructions, and sample output. Add the hosted MCP server, import the flow, choose your model, and run the company prompt. Clone the repo and run the flow.