Описание
An MCP server for getting ASCII banners
README
A classical Model Context Protocol (MCP) server that generates ASCII art banners from any string using pyfiglet.
Features
get_fonts— List all available pyfiglet font names (viaFigletFont.getFonts()).generate_banner— Render a string as ASCII art with a chosen font (viafiglet_format(text, font=...)).
Requirements
- Python ≥ 3.10
mcp,pyfiglet
Installation
From the project root:
pip install -e .
For development (tests):
pip install -e ".[dev]"
Usage
Run the server (stdio)
MCP clients typically run the server as a subprocess and talk over stdio:
python -m ascii_banner_mcp.server
Or after install:
ascii-banner-mcp
Config example
Copy and adjust one of the examples in config/:
- stdio (local): config/mcp-config.example.json —
command+argsfor Cursor, Claude Desktop, etc. - streamable-http (e.g. Docker): config/mcp-config-streamable-http.example.json —
url: "http://localhost:8000/mcp"when the server runs over HTTP.
Configure your MCP client
Add the server to your MCP client config (e.g. Cursor, Claude Desktop). Example (stdio):
{
"mcpServers": {
"ascii-banner": {
"command": "python",
"args": ["-m", "ascii_banner_mcp.server"]
}
}
}
If you use a virtualenv, use the full path to that Python:
{
"mcpServers": {
"ascii-banner": {
"command": "/path/to/venv/bin/python",
"args": ["-m", "ascii_banner_mcp.server"]
}
}
}
Tools
| Tool | Description |
|---|---|
get_fonts |
Returns a list of available font names. Use this to discover fonts for generate_banner. |
generate_banner |
Renders text as ASCII art. Parameters: text (required), font (optional, default "standard"). Use fonts from get_fonts() (e.g. "slant", "block", "big"). |
Example (equivalent to your snippet):
from pyfiglet import figlet_format
print(figlet_format("Hello", font="slant"))
Via this MCP server: call generate_banner with text="Hello" and font="slant".
MCP Inspector
Use MCP Inspector to test and debug the server.
Option 1 — stdio (local process)
- Run the Inspector:
npx @modelcontextprotocol/inspector - In the UI, add a server with Stdio transport.
- Set Command to
python(or full path to your Python/venv). - Set Args to
-m,ascii_banner_mcp.server. - Ensure the project is installed (
pip install -e .) or set cwd to the project root and usepython -m ascii_banner_mcp.server.
Option 2 — streamable-http (Docker or local)
- Start the server over HTTP:
- Docker:
docker compose -f .docker/docker-compose.yml up --build(see Docker below). - Local:
MCP_TRANSPORT=streamable-http python -m ascii_banner_mcp.server(serves athttp://127.0.0.1:8000/mcp).
- Docker:
- Run the Inspector:
npx @modelcontextprotocol/inspector - Add a server with Streamable HTTP (or URL) and set the URL to
http://localhost:8000/mcp.
Custom ports (Inspector):
CLIENT_PORT=8080 SERVER_PORT=9000 npx @modelcontextprotocol/inspector
Docker
Run the MCP server in a container. Use the .docker/ setup:
stdio (default) — client runs the container and talks via stdin/stdout:
docker build -f .docker/Dockerfile -t ascii-banner-mcp .
docker run -i --rm ascii-banner-mcp
streamable-http (for Inspector or URL-based clients):
docker compose -f .docker/docker-compose.yml up --build
Server is at http://localhost:8000/mcp. Use config/mcp-config-streamable-http.example.json or point MCP Inspector at that URL.
Development
- Tests:
pytest - Lint:
ruff check src tests - Format:
black src tests - Pre-commit: Black, Ruff, and conventional-commit message checks (e.g.
feat:,fix:). Install:pip install -e ".[dev]"thenpre-commit installandpre-commit install --hook-type commit-msg. Run manually:pre-commit run --all-files.
License
MIT
Установка ASCII Banner Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/guilyx/ascii_banner_mcpFAQ
ASCII Banner Server MCP бесплатный?
Да, ASCII Banner Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для ASCII Banner Server?
Нет, ASCII Banner Server работает без API-ключей и переменных окружения.
ASCII Banner Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить ASCII Banner Server в Claude Desktop, Claude Code или Cursor?
Открой ASCII Banner Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiSupabase
Database, auth and storage
автор: SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare ASCII Banner Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
