home / mcp / fastapply mcp server
Code Intelligence Platform with semantic search, AI-powered transformations, and enterprise security. FastApply MCP Server delivers comprehensive code analysis through local model execution and intelligent pattern recognition.
Configuration
View docs{
"mcpServers": {
"betmoar-fastapply-mcp": {
"command": "uvx",
"args": [
"--from",
"/path/to/fastapply-mcp",
"run",
"python",
"main.py"
],
"env": {
"FAST_APPLY_URL": "http://localhost:1234/v1",
"WORKSPACE_ROOT": "/path/to/project",
"FAST_APPLY_MODEL": "fastapply-1.5b",
"FAST_APPLY_TIMEOUT": "30.0"
}
}
}
}FastApply MCP Server is an enterprise-grade code intelligence platform that runs locally to analyze, search, and transform code across multiple languages. It combines local AI models, AST-based semantic search, and secure enterprise features to help you move faster with code comprehension, automated refactoring, and quality gates all inside your environment.
You connect to the FastApply MCP Server from an MCP client to perform AI-assisted edits, semantic searches, and security analyses across your codebase. Use the MCP client to send multi-file edits, run pattern-based searches, analyze code structure, and generate reports. The server is designed to work with Python, JavaScript, TypeScript, and Java projects and emphasizes fast responses, secure workspace isolation, and customizable quality gates.
# Clone and install FastApply
git clone https://github.com/your-org/fastapply-mcp.git
cd fastapply-mcp
# Install dependencies with uv (recommended)
uv sync --all-extras
source .venv/bin/activate
uv pip install -e .
# Or with pip
pip install -e .
cp .env.example .env# Verify installation completes and environment is prepared
python -m pip install -e .
cp .env.example .env# Core FastApply Settings
FAST_APPLY_URL=http://localhost:1234/v1
FAST_APPLY_MODEL=fastapply-1.5b
FAST_APPLY_TIMEOUT=30.0
# Performance Optimization
FAST_APPLY_MAX_TOKENS=8000
FAST_APPLY_TEMPERATURE=0.05
# Security & Isolation
WORKSPACE_ROOT=/path/to/project
FAST_APPLY_STRICT_PATHS=1
MAX_FILE_SIZE=10485760{
"mcpServers": {
"fastapply_mcp": {
"command": "uvx",
"args": ["--from", "/path/to/fastapply-mcp", "run", "python", "main.py"],
"env": {
"FAST_APPLY_URL": "http://localhost:1234/v1",
"FAST_APPLY_MODEL": "fastapply-1.5b",
"WORKSPACE_ROOT": "/path/to/project"
}
}
}
}After starting the server, you can leverage the MCP client to perform AI-guided edits, semantic searches, and security analyses across your codebase. Typical workflows include locating references to a symbol, safely refactoring a module with validation, running a comprehensive security scan, and producing a quality gate report that your CI/CD can use to gate deployments.
FastApply is designed for enterprise use with workspace isolation, strict path checking, and configurable file size limits. It supports caching and parallel processing to deliver sub-second responses for common queries while handling large projects through scalable batch processing.
If you encounter connection issues, verify the server is running at the configured URL and that the MCP client can reach it. For performance concerns, enable debug logging, monitor resource usage, and consider adjusting the cache or concurrency settings.
You can use the server to perform large-scale refactoring, security audits, quality gate automation, architecture analysis, and automated documentation. Examples include finding all references to a legacy class, running a comprehensive security scan with compliance reporting, and generating API documentation from code patterns.
AI-guided code editing with atomic operations, backup creation, and validation.
Preview edits safely with diff visualization and validation testing.
Batch file reading with concatenated output and contextual analysis.
Filename pattern search with recursive scanning and exclusion patterns.
AST-based semantic search with multi-language support.
Code structure analysis including functions, classes, imports, and complexity.
Symbol reference tracking and cross-codebase dependency mapping.
AST visualization with multiple format outputs.
Direct AST pattern search with CLI integration and JSON output.
YAML rule-based search for advanced pattern matching.
Vulnerability scanning with OWASP Top 10 and compliance checks.
Multi-dimensional code quality analysis including complexity and maintainability.
Generate reports for PCI DSS, HIPAA, GDPR, SOC 2, ISO 27001.
Quality gate automation with customizable thresholds.
Deep semantic analysis with multi-analysis types and memory features.
Dynamic rule generation from natural language to AST rules.
Intelligent pattern search with context awareness.
Auto-intent detection and automated tool selection.