LegalTech Logo

LegalTech

← Back to blog

Published on Wed Jul 01 2026 00:00:00 GMT+0000 (Coordinated Universal Time) by Miguel Gonzalez Herrera

Searching Circulares, Instrucciones and Consultas from the Spanish State Prosecutor Office (Fiscalía General del Estado) in the BOE.es doctrine search engine means dealing with unintuitive filters and forms that only accept one value per field. In this guide you will learn how to connect the Apify MCP to Claude so that the assistant itself searches and analyses this doctrine for you, all from a simple conversation.

⚖️ What Does the legaltech/fiscalia Actor Cover?

The legaltech/fiscalia actor automates the search for doctrine from the Spanish State Prosecutor Office published in the BOE.es search engine:

It lets you filter by document type, title, full text, year, number and legal subject matter (25 areas, from Immigration or Gender-Based Violence to Cybercrime), and in a second run it can download the full text of the chosen documents together with their validity comment and the legal references they cite.

🤖 Tutorial: Connect Apify to Claude and Start Querying

Thanks to the Model Context Protocol (MCP), Claude can connect to external tools such as Apify. This means that, instead of filling in the BOE.es form by hand, you can ask Claude in natural language to retrieve the doctrine you need and work with it.

Step 1: Create an Apify Account and Get Your Token

The first thing you need is an Apify account. The free plan provides enough monthly usage credits to run the actor.


Create a free Apify account

Once inside, go to Settings → API & Integrations, click Create new token, and copy it.

Personal API tokens in Apify

Step 2: Download Claude Desktop

Download and install the Claude Desktop app from claude.com/download. This desktop version is the one that allows you to add external MCP connectors.

Step 3: Install the Apify Connector and Paste Your Token

Open Claude Desktop, go to the connector settings, and select Add custom connector. Enter the Apify MCP URL and paste the token you copied in the previous step.

Add a custom connector in Claude

Configure the Apify custom connector

https://mcp.apify.com/

Add the Apify token in the Claude connector

With this you now have access to all LegalTech actors from Claude: legaltech/fiscalia, legaltech/cendoj, legaltech/tribunal-constitucional, and many more.

📱 Bonus: Once the connector is set up in your account, you can also use it from the Claude mobile app. The connector is linked to your account, so you can query Fiscalía doctrine from any device without any additional configuration.

Step 4: Query State Prosecutor Doctrine from the Chat

Once the connector is configured, open the Claude chat and verify that Apify appears as an available tool.

Apify available in the Claude chat

Now you can ask Claude in natural language to find the doctrine you need, without knowing the boolean operators or the internal subject-matter IDs. For example:

Use the legaltech/fiscalia actor and find Circulares on immigration

Use the legaltech/fiscalia actor and give me the 2015 Instrucciones on minors, most recent first

Use the legaltech/fiscalia actor and find Circular 5/2011

Use the legaltech/fiscalia actor and search for Consultas on gender-based violence

Claude will translate your request into the right filters (document type, subject matter, year, number, or search terms with AND/OR/NOT operators) and run the actor for you, returning the list of Circulares, Instrucciones, or Consultas that match your request.

Step 5: Extract the Full Text and Analyse It from the Chat

Once you have the list, you can ask Claude to dig deeper into one or more specific documents. Claude will re-run the actor with the references of those documents (the documentIds field) to download their full text, the validity comment, the associated subject matters, and the earlier legal references they cite.

For example, you can continue the conversation with:

The analysis is a conversation: you refine your questions and Claude responds drawing on the doctrine it retrieved directly from the BOE.es search engine, saving you the form navigation and the initial reading of each document.

Written by Miguel Gonzalez Herrera

← Back to blog