Python_Scripts_MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| xlsx_to_txtA | 扫描指定目录下所有 .xlsx Excel 文件,生成文件树并提取每个文件的所有 Sheet 内容,以表格格式输出到文本文件。自动过滤全空行/列。适用于:将 Excel 数据转换为 AI 可读的纯文本格式、批量提取表格数据。参数: -d <目录路径> 指定扫描目录(默认当前目录);-o <文件名> 指定输出文件(默认 xlsx_contents.txt);--raw-formulas 提取公式原文(默认提取计算后的值);--max-rows <行数> 限制每个 Sheet 最大读取行数。自动跳过 .venv 目录及 .gitignore 中忽略的内容。 |
| mainA | 简单的 Hello World 测试脚本。输出欢迎信息,用于验证 Python 环境是否正常工作。无需参数。 |
| python_to_txtA | 扫描当前目录下所有 .py 文件(递归),提取每个文件的代码内容,合并输出到一个文本文件中。格式:每个文件以【相对路径】和【代码】标记分隔。适用于:代码审查、准备 AI 上下文输入、代码汇总存档。无参数,默认扫描当前目录,输出到 output_py_files.txt。自动跳过 .venv、pycache、.git 目录及 .gitignore 中忽略的内容。 |
| tree_to_txtA | 扫描指定目录(默认为当前目录)生成完整目录文件树,保存到文本文件中。适用于:项目结构概览、文档编写、了解目录层级关系。参数: -d <目录路径> 指定扫描目录(默认当前目录);-o <文件名> 指定输出文件(默认 file_tree.txt)。自动跳过 .venv、pycache、.git 目录及 .gitignore 中忽略的内容。 |
| text_to_txtA | 扫描当前目录下所有文本文件(自动检测 UTF-8/UTF-16/GBK/Latin-1 编码),将文件内容合并输出到一个文本文件中。格式:每个文件以【文件名】标记分隔。适用于:文档汇总、语料准备、文本分析、合并散落的文本资料。无参数,默认扫描当前目录,跳过自身输出文件,输出到 merged_texts.txt。自动跳过 .venv 目录及 .gitignore 中忽略的内容。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct source format (Excel, Python, general text, directory tree), and main is clearly a test script. However, python_to_txt and text_to_txt both process .py files, which could cause minor confusion about which to use for a given task.
Four of the five tools follow a consistent <source>_to_txt naming pattern. The exception is main, which breaks the convention but is understandable as a simple test script.
With five tools, the server is well-scoped for its purpose. Each tool serves a clear utility function, and there are no redundant or unnecessary entries.
The server covers conversion of common source types to text, including Excel, Python, and general text files, plus directory tree export. Minor gaps include lack of support for other document formats (PDF, Word) and no option to process individual files rather than directories.