Fullstack Context MCP Server
Enables AI agents to interact with both frontend and backend projects by providing file system access and context through the MCP protocol, facilitating full-stack development assistance.
README
📚 MCP Server Integration Guide
This guide provides instructions on how to configure your Fullstack Context MCP Server with various AI clients (Claude Desktop, Cursor, VS Code/Cline, Gemini CLI).
⚠️ Prerequisites
- Absolute Paths Only: MCP clients rarely understand relative paths like
.or~. Always use full paths (e.g.,/Users/name/projectorC:\Users\name\project). - Python Environment: Ensure
mcpis installed in the python environment you are pointing to.
🛑 IMPORTANT: Workspace Restrictions (Sandboxing)
Read this if you use VS Code, Cursor, or Windsurf.
Even if you configure PATH_BACKEND correctly in the JSON settings, the AI Agent (Client) typically operates inside a Security Sandbox. It often refuses to execute tools or read files that are outside the currently open window/folder to prevent unauthorized access.
The Fix: Multi-Root Workspace To allow the AI to access your external backend folder via MCP, you must explicitly trust it by adding it to your current workspace:
- Open your Frontend project in the editor.
- Go to File > Add Folder to Workspace...
- Select your Backend folder (e.g.,
/path/to/backend-project). - (Optional) Save this setup: File > Save Workspace As...
Result: Both folders are now "inside" the trusted zone. The MCP server will now work correctly without being blocked by the editor's security layer.
1. Claude Desktop App (MacOS / Windows)
Claude Desktop is currently the standard implementation for MCP and is less strict about workspace sandboxing than VS Code.
Configuration File Location:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Setup Steps:
- Open the configuration file in a text editor.
- Add your server under
mcpServers.
{
"mcpServers": {
"fullstack-server": {
"command": "python3",
"args": [
"/absolute/path/to/your/repo/server.py"
],
"env": {
"PATH_FRONTEND": "/absolute/path/to/frontend-project",
"PATH_BACKEND": "/absolute/path/to/backend-project"
}
}
}
}
Note: If you use a virtual environment (venv), replace "python3" with the path to the python executable inside the venv.
2. Cursor (AI Editor)
Cursor creates a bridge to local scripts via its "Features" settings.
Setup Steps:
- Open Cursor Settings (
Ctrl + ,orCmd + ,). - Go to
Features->MCP Servers. - Click "Add New Server".
- Fill in the details:
- Name:
Fullstack Context - Type:
Command (stdio) - Command:
python3 /absolute/path/to/your/repo/server.py - Environment Variables:
PATH_FRONTEND:/absolute/path/to/frontend-projectPATH_BACKEND:/absolute/path/to/backend-project
- Name:
Crucial Step: Ensure you add both Frontend and Backend folders to the workspace (File > Add Folder to Workspace) so the AI has permission to use the MCP tools on them.
3. VS Code (via Cline / Roo Code)
VS Code Native does not support MCP yet. You must use the Cline (formerly Claude Dev) or Roo Code extension.
Setup Steps:
- Install Cline from VS Code Marketplace.
- Open Cline in the sidebar.
- Click the MCP Server Icon (Database icon) or Settings.
- Select "Edit MCP Settings".
- Paste the configuration:
{
"mcpServers": {
"fullstack-server": {
"command": "python",
"args": ["/absolute/path/to/your/repo/server.py"],
"env": {
"PATH_FRONTEND": "/absolute/path/to/frontend-project",
"PATH_BACKEND": "/absolute/path/to/backend-project",
"PYTHONUTF8": "1"
}
}
}
}
⚠️ Important: VS Code is very strict. If PATH_BACKEND is outside the current window, you MUST use File > Add Folder to Workspace to include that folder, otherwise Cline will refuse to run the tool or read files from it.
4. Google Gemini CLI (npm)
This section explains how to connect the official npm gemini-cli to this MCP server.
Setup Steps:
-
Install and Authenticate Gemini CLI:
npm install -g @google/gemini-cli gemini configure -
Configure Gemini CLI for MCP: Open the Gemini CLI configuration file. Its location varies by OS:
- Linux/macOS:
~/.config/@google-gemini-cli/config.json - Windows:
%APPDATA%\@google-gemini-cli\config.json
Add your server configuration under the
mcpServerssection: - Linux/macOS:
{
"mcpServers": {
"fullstack-server": {
"command": "python3",
"args": [
"/absolute/path/to/your/repo/server.py"
],
"env": {
"PATH_FRONTEND": "/absolute/path/to/frontend-project",
"PATH_BACKEND": "/absolute/path/to/backend-project"
}
}
}
}
Note: Ensure that /absolute/path/to/your/repo/server.py points to the correct location of your MCP server script. Replace /absolute/path/to/frontend-project and /absolute/path/to/backend-project with the actual absolute paths to your frontend and backend project directories, respectively.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。