MCP Dev-Tools Agent
A local AI agent system that gives any LLM real access to the filesystem, terminal, and codebase via MCP, usable as a standalone terminal agent or Continue.dev integration in VS Code.
README
MCP Dev-Tools Agent
A local AI agent system built with the Model Context Protocol (MCP) that gives any LLM real access to your filesystem, terminal, and codebase. Works as both a standalone terminal agent and a Continue.dev integration in VS Code.
What It Does
- Connects any LLM (Claude, Groq, OpenAI, Gemini, OpenRouter, Ollama) to your local machine via MCP
- Gives the AI real tools to read/write files, run commands, and search your codebase
- Works as a terminal agent (
bun dev) or as a Continue.dev MCP server in VS Code - Fully provider-agnostic — switch models by changing one
.envvariable
Project Structure
mcp-server/
├── src/
│ ├── mcp-server/
│ │ └── index.ts # MCP server with 7 tools
│ ├── providers/
│ │ ├── index.ts # Provider registry
│ │ ├── claude.ts # Anthropic Claude
│ │ ├── groq.ts # Groq (Llama)
│ │ ├── openai.ts # OpenAI (GPT)
│ │ ├── openrouter.ts # OpenRouter
│ │ ├── ollama.ts # Ollama (local)
│ │ └── gemini.ts # Google Gemini
│ ├── services/
│ │ ├── claude.service.ts
│ │ ├── groq.service.ts
│ │ ├── openai.service.ts
│ │ ├── openrouter.service.ts
│ │ ├── ollama.service.ts
│ │ └── gemini.service.ts
│ ├── config/
│ │ └── envs.ts # Environment config
│ ├── types/
│ │ └── common.ts # Shared types
│ └── agent.ts # Standalone terminal agent
├── .env # API keys (never commit)
├── package.json
└── tsconfig.json
Installation
git clone https://github.com/naushadraien/mcp-server.git
cd mcp-server
bun install
Environment Setup
Create a .env file in the project root:
# Choose your provider
PROVIDER=groq # groq | claude | openai | openrouter | ollama | gemini
# Add the API key for your chosen provider
GROQ_API_KEY=your_groq_key_here
ANTHROPIC_API_KEY=your_anthropic_key_here
OPENAI_API_KEY=your_openai_key_here
OPENROUTER_API_KEY=your_openrouter_key_here
GEMINI_API_KEY=your_gemini_key_here
# Ollama needs no API key — runs locally
Running the Agent
bun dev
This starts an interactive terminal agent. Type your message and the AI will use MCP tools to act on your local machine.
🚀 Starting MCP dev-tools agent...
✅ MCP server connected. Tools available:
• read_file
• write_file
• list_directory
• run_command
• search_in_files
• create_directory
• delete_file
You: read C:/Projects/myapp/package.json and tell me the dependencies
🔧 [1/5] Calling: read_file
...
Switching Providers
Just change PROVIDER in your .env:
PROVIDER=groq # Groq Llama 3.3 — free 100k tokens/day
PROVIDER=claude # Anthropic Claude — best quality
PROVIDER=openai # OpenAI GPT-4o
PROVIDER=openrouter # OpenRouter — access to many models
PROVIDER=gemini # Google Gemini — free 1500 req/day
PROVIDER=ollama # Local Ollama — free, no limits
Available Tools
| Tool | Description |
|---|---|
read_file |
Read the contents of any file from disk |
write_file |
Write or overwrite content to a file |
list_directory |
List files and folders (supports recursive) |
run_command |
Execute any shell/terminal command |
search_in_files |
Search text/regex across your codebase |
create_directory |
Create new directories (including nested) |
delete_file |
Delete a file from disk |
Example Prompts
# Read a file
read C:/Projects/myapp/package.json and show me all dependencies
# List project structure
list all files in C:/Projects/myapp/src recursively
# Search codebase
search for "TODO" in C:/Projects/myapp/src with extension .ts
# Run a command
run "npm run build" in C:/Projects/myapp
# Chain multiple tools
list all files in src, read index.ts and write a summary to SUMMARY.md
# Generate documentation
read all files in src and write a complete README.md
Use with Continue.dev in VS Code
Add this to ~/.continue/config.yaml:
mcpServers:
- name: dev-tools
command: bun
args:
- run
- C:/<your-path>/mcp-server/src/mcp-server/index.ts
Continue will automatically start the MCP server when VS Code opens. Use Agent mode in Continue chat to trigger tool calls.
Adding New Tools
Open src/mcp-server/index.ts and add a new server.registerTool() block:
server.registerTool(
"my_tool", // tool name
{
title: "My Tool", // human-readable title
description: "What this tool does", // what the AI sees
inputSchema: {
param1: z.string().describe("Description of param1"),
param2: z.number().optional().describe("Optional param"),
},
},
async ({ param1, param2 }) => {
// your code here — call APIs, query DB, anything
const result = await doSomething(param1);
return {
content: [{ type: "text", text: result }],
};
}
);
Reload VS Code or restart bun dev and the new tool is immediately available.
Provider API Links
| Provider | Free Tier | Sign Up |
|---|---|---|
| Groq | 100k tokens/day | console.groq.com |
| OpenRouter | 50 req/day | openrouter.ai |
| Gemini | 1500 req/day | aistudio.google.com |
| DeepSeek | Pay as you go (~$0.001/1k) | platform.deepseek.com |
| Ollama | Unlimited (local) | ollama.com |
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。