dra2sun7/mcp-server
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
MCP Server is a RESTful API server that implements the Model Context Protocol to provide dynamic choice-based responses.
๐ง MCP Server
Model Context Protocol ๊ธฐ๋ฐ ๋ฌธ์ ์ฒ๋ฆฌ ํ์ดํ๋ผ์ธ
SEC EDGAR Filing ๋ค์ด๋ก๋๋ถํฐ Markdown ๋ณํ๊น์ง
๐ ๊ฐ์
์ด ํ๋ก์ ํธ๋ MCP (Model Context Protocol) ๊ธฐ๋ฐ์ ๋ฌธ์ ์ฒ๋ฆฌ ํ์ดํ๋ผ์ธ์ ๊ตฌํํฉ๋๋ค.
SEC EDGAR์์ ํ์ฌ Filing์ ๋ค์ด๋ก๋ํ๊ณ , HTML์ PDF๋ก ๋ณํํ ํ, ์ต์ข
์ ์ผ๋ก Markdown์ผ๋ก ๋ณํํ๋ ์์ ํ ์ํฌํ๋ก์ฐ๋ฅผ ์ ๊ณตํฉ๋๋ค.
๐ ์ฃผ์ ๊ธฐ๋ฅ
๐ download_sec_filing
- SEC EDGAR API๋ฅผ ํตํ ํ์ฌ Filing ์๋ ๋ค์ด๋ก๋
- 8-K, 10-Q, 10-K, DEF 14A ์ง์
- CIK ๊ธฐ๋ฐ ํ์ฌ ๊ฒ์ ๋ฐ ์ต์ Filing ์ ํ
๐ html_to_pdf
- HTML ํ์ผ์ PDF๋ก ๋ณํ
- Playwright๋ฅผ ํ์ฉํ ์ค์ ๋ธ๋ผ์ฐ์ ๋ ๋๋ง
- ๋ฐฐ์น ์ฒ๋ฆฌ ์ง์
๐ read_me_markdown
- PDF๋ฅผ Markdown์ผ๋ก ๋ณํ
- Docling ํ๋ ์์ํฌ ํ์ฉ
- ๋ฌธ์ ๊ตฌ์กฐ ๋ณด์กด
๐ ํ๋ก์ ํธ ๊ตฌ์กฐ
mcp-server/
โโโ download_sec_filing/ # SEC Filing ๋ค์ด๋ก๋ ๋๊ตฌ
โ โโโ main.py
โ โโโ requirements.txt
โ โโโ tests/
โ โโโ README.md
โโโ html_to_pdf/ # HTML to PDF ๋ณํ ๋๊ตฌ
โ โโโ main.py
โ โโโ requirements.txt
โ โโโ tests/
โ โโโ README.md
โโโ read_me_markdown/ # PDF to Markdown ๋ณํ ๋๊ตฌ
โ โโโ main.py
โ โโโ requirements.txt
โ โโโ tests/
โ โโโ README.md
โโโ requirements.txt # ๋ฉ์ธ ํ๋ก์ ํธ ์์กด์ฑ
โโโ README.md # ์ด ํ์ผ
๐ ์ํฌํ๋ก์ฐ
1. download_sec_filing โ HTML ํ์ผ ๋ค์ด๋ก๋
2. html_to_pdf โ HTML์ PDF๋ก ๋ณํ
3. read_me_markdown โ PDF๋ฅผ Markdown์ผ๋ก ๋ณํ
๐ ๏ธ ์ค์น ๋ฐ ์ค์
1. ๊ธฐ๋ณธ ์์กด์ฑ ์ค์น
pip install -r requirements.txt
2. Playwright ๋ธ๋ผ์ฐ์ ์ค์น (html_to_pdf์ฉ)
pip install playwright
playwright install
3. ๊ฐ ๋๊ตฌ๋ณ ์์กด์ฑ ์ค์น
# download_sec_filing
cd download_sec_filing
pip install -r requirements.txt
# html_to_pdf
cd ../html_to_pdf
pip install -r requirements.txt
# read_me_markdown
cd ../read_me_markdown
pip install -r requirements.txt
๐ ์ฌ์ฉ ์์
1. SEC Filing ๋ค์ด๋ก๋
cd download_sec_filing
python main.py
2. HTML์ PDF๋ก ๋ณํ
cd html_to_pdf
python main.py
3. PDF๋ฅผ Markdown์ผ๋ก ๋ณํ
cd read_me_markdown
python main.py
๐งช ํ ์คํธ
๊ฐ ๋๊ตฌ๋ณ๋ก ํ ์คํธ๋ฅผ ์คํํ ์ ์์ต๋๋ค:
# download_sec_filing ํ
์คํธ
cd download_sec_filing
pytest tests/
# html_to_pdf ํ
์คํธ
cd ../html_to_pdf
pytest tests/
# read_me_markdown ํ
์คํธ
cd ../read_me_markdown
pytest tests/
๐ ์ฐธ๊ณ ์๋ฃ
๋ณธ ํ๋ก์ ํธ๋ MCP ๊ธฐ๋ฐ ๋ฌธ์ ์ฒ๋ฆฌ ํ์ดํ๋ผ์ธ์ ์์ ํ ๊ตฌํ์ฒด์ ๋๋ค.