Allows for the generation of .gitignore files to help manage untracked files in Git repositories.
Interfaces with the gitignore.io API to browse templates and generate standardized .gitignore files for various projects.
Connects to the Toptal-hosted gitignore.io API service to fetch and generate environment-specific .gitignore configurations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gitignore MCP Toolcreate a .gitignore for python, visualstudiocode, and macos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A MCP server for generating
.gitignorefiles using gitignore.io API
š Features
Gitignore Generation: Generate
.gitignorefilesTemplate Listing: Browse all available gitignore templates
š ļø Getting Started
Environment Variables
Variable | Default | Description |
|
| Base URL for gitignore.io API |
Local Development
Install dependencies:
uv sync(Optional) Set custom API endpoint:
export GITIGNORE_API_BASE="https://your-custom-api.com/api"Run the MCP server:
uv run --with fastmcp fastmcp run mcp_tools/main.pyDocker
Build the Docker image:
docker build -t mcp-gitignore:latest .Run the container:
docker run -i --rm -p 8000:8000 mcp-gitignore:latestRun with custom API endpoint:
docker run -i --rm -p 8000:8000 -e GITIGNORE_API_BASE="https://your-custom-api.com/api" mcp-gitignore:latestRun MCP Server:
{
"mcpServers": {
"mcp-gitignore": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-p",
"8000:8000",
"mcp-gitignore:latest"
],
"env": {
"GITIGNORE_API_BASE": "https://www.toptal.com/developers/gitignore/api"
}
}
}
}šÆ API Endpoints
List Templates
GET /gitignore/templates/
List all available gitignore templates.
Generate .gitignore
POST /gitignore/generate/
Generate .gitignore file based on templates.
Request Body:
{
"templates": ["python", "visualstudiocode", "macos"],
"output_path": ".gitignore"
}š Documentation
Documentation is built using MkDocs and deployed to GitHub Pages.
To build the documentation locally:
chmod +x scripts/build_docs.sh
scripts/build_docs.sh
mkdocs buildResources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.