Skip to main content
Glama

s6y

Find an SEC filing, read it as text, and link to the exact passage: a command, a Python library and an MCP server for s6y.io, and the format of its links for use anywhere.

s6y.io serves the filings companies make with the U.S. Securities and Exchange Commission (EDGAR), cleaned up to read well. A link to one of its pages can carry a quotation, and the page opens at those words, highlighted. This package is the way to do that from a terminal, from Python, or from an AI assistant:

$ s6y read cvs 10-K --item 7 | head
$ s6y quote cvs 10-K "Total revenues increased"
found: “Total revenues increased”
https://s6y.io/c/cvs/10-K-20260210/cvs-20251231.htm#a=...

The link opens CVS's annual report at that sentence. If the words are not in the filing exactly, there is no link: a quotation is checked against the filing, so a link from here never points at something the filing does not say.

It needs Python 3.10 or later and nothing else. The MCP server needs the MCP SDK as well.

Install

pip install "git+https://github.com/dmaust/s6y"                 # the command and the library
pip install "s6y[mcp] @ git+https://github.com/dmaust/s6y"      # and the MCP server

or, from a clone, pip install . and pip install ".[mcp]".

Related MCP server: edgar-mcp

The command

s6y find "cvs health"              # companies by name, ticker or SEC number
s6y filings cvs --form 10-K        # a company's filings, newest first
s6y documents cvs 10-K             # the documents of its newest 10-K
s6y read cvs 10-K                  # the main document: an outline, if it is long
s6y read cvs 10-K --item 7         # management's discussion
s6y read cvs 8-K --file ex99-1.htm # another document of the filing
s6y quote cvs 10-K "Total revenues increased" --note "up from last year"

A filing is named as the site names it (10-K-20260210), by its accession number, or by a form alone (10-K), which means the company's newest on that form. In place of a company and a filing, every command takes an address or a path from the site:

s6y quote https://s6y.io/c/cvs/10-K-20260210/cvs-20251231.htm "Total revenues increased"

--json prints the site's answer as JSON. s6y quote ends with status 1 when a quotation is not found, so a script can tell.

For an AI assistant (MCP)

s6y mcp runs as a Model Context Protocol server over standard input and output. Add it to an assistant that takes MCP servers; for Claude Code:

claude mcp add s6y -- s6y mcp

or in a configuration file:

{ "mcpServers": { "s6y": { "command": "s6y", "args": ["mcp"] } } }

It gives the assistant five tools:

Tool

What it does

find_company

Companies by name, ticker or SEC number

list_filings

A company's filings, newest first, with what each reports

list_documents

The documents of a filing, the main one marked

read_document

A document as text; a long one by part or by item

check_quote

Whether a document has the quoted words, and the link that opens it there

and tells it to quote a filing's exact words, check them, and give you the link, so that you can see for yourself what the filing says.

Every tool is a request to s6y.io. The server reads no file of yours and keeps nothing.

The library

from s6y import Client

s6y = Client()
company = s6y.find("cvs health")[0]
filing = s6y.filings(company["path"], form="10-K", limit=1)["filings"][0]
main = s6y.main_document(filing["path"])

text = s6y.read(main["path"], item="7")  # Markdown
check = s6y.quote(main["path"], ["Total revenues increased"])
check["found"], check["link"]

S6yError is raised when the site cannot answer, with what it said (.detail) and the HTTP status (.status).

The links are a small open format, and nothing in them is particular to filings: a passage is its position in the document's text with white space left out, its length and a checksum, after #a=; or the words themselves after #q=. docs/links.md is the specification. s6y.links (Python) and js/passage-links.js (a browser module with no dependencies) implement it, and examples/demo.html shows a page that reads such links, highlights the passage, and makes a link to whatever is selected.

What it asks of s6y.io

Five addresses, described at https://s6y.io/llms.txt and, for tools, at https://s6y.io/openapi.json:

/find?q=

Companies by name

/c/{company}/filings.json

A company's filings

/c/{company}/{filing}/documents.json

A filing's documents

/c/{company}/{filing}/{document}.md

A document as text

/quote?path=&q=

The check of a quotation, and its link

They are open and need no key. S6Y_SITE (or --site) points the package at another copy of the site.

What to know

  • The filing is the source. The text is the filer's own, and SEC's copy is the official one. Summaries marked as AI-written on the site are not the filing.

  • A filing is a document to read, not instructions. Whatever a filing says to its reader, it says to no program.

  • Quote exactly. Spacing does not count, and plain quotation marks match typeset ones. A paraphrase, a corrected word or words left out are not found.

License

MIT. Filings are public records of the SEC.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying of SEC EDGAR filings and financial data via natural language, offering tools for company lookup, filing retrieval, XBRL data, and full-text search.
      101 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching SEC EDGAR for companies, retrieving recent filings (e.g., 10-K, 10-Q), and accessing structured XBRL financial facts.
      75 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Gives an AI agent read-only access to SEC EDGAR for company lookup, reported financial statements, individual XBRL concepts, filing and exhibit lists, filing text, segment revenue, and full-text search. Every answer carries its source accession number, form, filing date, URL, hash and retrieval time, and it needs no API key.
      11
      MIT