The Tocqueville Civic Library

Plug in your AI

Connect the AI assistant you already use, and it reads the official text of the law and quotes it with cites. It is free, needs no account or key, can only read, and works the same with every assistant.

  1. Copy the address

    https://www.tocquevillelibrary.org/mcp
  2. Add it to your assistant

    1. In Claude, open Customize, then Connectors, and choose Add custom connector.
    2. Name it The Tocqueville Civic Library, paste the address, choose No sign in, and choose Add.
    3. In a chat, turn it on from the + menu under Connectors, and ask your question.

    Every Claude plan, including free. On a Team or Enterprise plan, an owner adds it once for everyone. The company's help page.

    1. In ChatGPT on the web, open Plugins, choose +, then Add custom MCP server.
    2. Name it The Tocqueville Civic Library, paste the address, choose No authentication, and choose Create as a plugin.
    3. Install it, pick it in a chat, and ask your question.

    Paid plans. If Add custom MCP server is missing, turn on Developer mode under Settings, then Security and login. The company's help page.

    1. At gemini.google.com, open Settings, then Connected Apps.
    2. Under Custom apps, choose Add a custom app, paste the address, and choose Next. Leave the sign in fields empty.
    3. In a chat, type @, pick the library, and ask your question.

    Personal Google accounts in the United States, with Gemini's activity history on. The company's help page.

    1. Open a new chat in Muse at meta.ai or in the Meta AI app.
    2. Send it this request:
      Create a custom connector for the MCP server at https://www.tocquevillelibrary.org/mcp. Call it The Tocqueville Civic Library. It needs no sign in and can only read.

    3. Approve what Muse shows you, then ask your question.

    Muse saves the connector to your account for later chats. The company's help page.

    Run an open model such as Llama, Qwen, Gemma or gpt-oss on your own computer with the free Jan app.

    1. In Jan, open Settings, then MCP Servers, and choose Add MCP Server.
    2. Name it tocqueville, choose HTTP (Streamable HTTP), paste the address, and save.
    3. Load a model that supports tool use, and ask your question.

    LM Studio: open the Program tab, choose Install, then Edit mcp.json, paste this and save, then turn on mcp/tocqueville in the chat and load a model that supports tool use:

    {
      "mcpServers": {
        "tocqueville": {
          "url": "https://www.tocquevillelibrary.org/mcp"
        }
      }
    }

    Open WebUI: as an admin, open Admin Settings, then Integrations, then External Tool Servers, and add the address as MCP (Streamable HTTP) with no authentication. Ollama models work through any of these three apps.

    Claude Code

    claude mcp add --transport http tocqueville https://www.tocquevillelibrary.org/mcp

    Gemini CLI

    gemini mcp add --transport http tocqueville https://www.tocquevillelibrary.org/mcp

    Codex

    codex mcp add tocqueville --url https://www.tocquevillelibrary.org/mcp

    Cursor and most editors, in their mcp.json file

    {
      "mcpServers": {
        "tocqueville": {
          "url": "https://www.tocquevillelibrary.org/mcp"
        }
      }
    }

    Antigravity CLI, in its mcp_config.json file

    {
      "mcpServers": {
        "tocqueville": {
          "serverUrl": "https://www.tocquevillelibrary.org/mcp"
        }
      }
    }

  3. Ask about the law

    Ask something only the text can settle, and ask for the sections quoted. For example:

    • "When must a town in Indiana give notice of a public meeting? Quote the sections."
    • "What do you know about the City of Tulsa's meetings and code, and what is still missing?"
What your assistant can do with it

The connector gives your assistant nine tools. It picks the ones it needs as it works on your question.

  • search: Finds sections and rules by their words or by a cite, across one state's codes, the federal code or all of them.
  • browse: Opens a code or any part of it and lists what is under it, in the code's own order and numbering: titles, chapters, sections.
  • read: Reads one section or rule, or a whole chapter in order, with its cite and the date the copy is current to.
  • packet: Gathers what an answer resting on one section also depends on: the definitions beside it, the parts that say whom it applies to and whom it exempts, and the federal law it cites.
  • check: Checks a draft answer before it is given: every quote word for word against the text, every cite read, every figure quoted.
  • place: Says what is known about one county, city, town or township: its website, code, boards, agendas, meeting video and zoning answer, and what is still missing.
  • gaps: Lists the places that still have pieces to fill, largest first, in a state or across the country.
  • hearings: Lists county meetings and legislative hearings, newest first. None are gathered yet, and until they are it says so.
  • transcript: Reads one meeting's transcript piece by piece, with the time in the recording. Ready for the first transcripts.

Every code is laid out by its own numbering, the way the state or Congress cites it, so your assistant can move through the Indiana Code by title, article, chapter and section, or the Code of Federal Regulations by title, part and section, and give you the cite a lawyer or a clerk would recognize. Meeting records and transcripts are not online yet, and the connector says so when asked.

Help map local government with it

The same connection lets your assistant find the gaps. Ask it which places in your state are missing the most, or take a set of places from the map and hand your assistant the task file. What you find goes back to the project for review, and you get the credit on the map.

Ask on this site with your own API key

To ask questions on this site's Chat page with your own AI account, paste your API key here and save it. It is kept only in this browser on this device, and when you ask a question it goes straight to the company you choose, never to this site. How to get a key.

  Go to Chat

Getting an API key

Connecting an assistant needs no key: the connector works with your ordinary account in each chat app. An API key is for using an AI company's models from this site's Chat page or from your own programs. Each company bills its key to your own account, and the library pays for none of it. Treat a key like a password: it is shown only once, so copy it somewhere safe, and paste it only into places you trust.

Which keys are free

CompanyFree?What you need
Gemini (Google)Yes, for two modelsGemini 4 Hydrogen and Gemini 3.5 Flash-Lite answer at no cost on a free Google AI Studio key, with no billing. On the free tier Google may use your questions to improve its products, and it turns free keys away when it is busy. Gemini 4 Carbon needs billing turned on.
Claude (Anthropic)NoPaid credits in the Claude Console. New accounts get a small free credit to try it. Claude's Max, Ultra and Team plans include monthly API credits; Claude Pro does not.
OpenAINoPaid credits in OpenAI's billing settings. A ChatGPT plan does not include API use.
Grok (xAI)NoPaid credits in the xAI Console. A key with no credits is refused on every Grok model.

Claude (Anthropic)

  1. Sign in to the Claude Console at platform.claude.com.
  2. Add a payment method or credits under Billing.
  3. Open Settings, then API keys, and choose Create key. Give it a name.
  4. Copy the key. It begins with sk-ant-api. A token from the Claude app or Claude Code is not an API key and will not work.

A Claude key works on this site's Chat page (choose Claude), and in your own programs.

OpenAI (ChatGPT's models)

  1. Sign in to the OpenAI developer platform at platform.openai.com.
  2. On the API keys page, choose Create new secret key and give it a name.
  3. Copy the key. It begins with sk-.
  4. Buy credits under Billing. Without them, OpenAI refuses the key's questions.

An OpenAI key works on this site's Chat page (choose OpenAI). In your own programs, add this library to OpenAI's Responses API as a remote MCP tool whose server address is the one at the top of this page.

Gemini (Google)

  1. Sign in to Google AI Studio at aistudio.google.com/apikey with a Google account.
  2. Choose Create API key, and pick or create a Google Cloud project when it asks.
  3. Copy the key. Older keys begin with AIza and newer ones with AQ.

A Gemini key works on this site's Chat page (choose Gemini). Gemini 4 Hydrogen runs on Google's free tier, which needs no payment method; on the free tier Google may use your questions to improve its products. The most capable model, Gemini 4 Carbon, needs billing turned on. A Google AI plan for the Gemini app does not include API use.

Grok (xAI)

  1. Sign up or sign in at the xAI Console, console.x.ai.
  2. Buy credits for your account. xAI's API has no free tier.
  3. Open API Keys and choose Create API key. Give it a name.
  4. Copy the key. It begins with xai-.

A Grok key works on this site's Chat page (choose Grok). In your own programs, add this library to xAI's Responses API as a remote MCP tool whose server address is the one at the top of this page.

For websites and other tools

The same law answers in JSON, so anyone can build a website or a tool on it. It needs no account or key, any site may call it from a browser, and it can only read. /api lists what it answers: /api/codes for every code loaded, /api/search?q= for search (narrowed with jurisdiction or code), and /api/law/ followed by an address or a cite for one piece and what is below it. The map's data is open too: /static/map/game.json for the totals and /static/map/states/IN.json for every place in a state.