extra_skills_mcp_tools

extra_skills_mcp_tools

Self-hosted MCP server with 83+ tools for AI workflows. Features 80%+ token reduction through 5 optimization layers.

Category
访问服务器

README

MCP Server Suite — Token-Optimized AI Development Platform

Self-hosted MCP server with 83+ tools for AI workflows — featuring 80%+ token reduction through 5 optimization layers.

GitHub stars License: MIT


Table of Contents


Overview

This MCP server provides 83+ tools for AI-powered development workflows, featuring:

  • 🌐 Web Search & Scraping — SearXNG, Firecrawl, structured extraction
  • 🐙 GitHub Integration — Repos, issues, commits, search
  • 📺 YouTube — Transcripts, search, summarization
  • 💻 Code Execution — Python sandbox, testing
  • 📊 Data & Charts — Pandas, matplotlib visualization
  • 🧠 Engineering Intelligence — Task classification, bug tracing, memory
  • ⚡ Token Optimization — Built-in 80% token reduction

No API keys required for core functionality.


Quick Start

# 1. Clone repository
git clone https://github.com/simpletoolsindia/extra_skills_mcp_tools.git
cd extra_skills_mcp_tools

# 2. Run installation script
./install-claude-code.sh

# 3. Restart Claude Code
claude

# 4. Verify installation
docker compose -f docker-compose.local.yml ps

Token Optimization (80% Savings)

This server implements 5 layers of token optimization to maximize your context window:

Optimization Layers

Layer Reduction Description
Tool Trimming 80% 90 → 64 tools with concise descriptions
Web Content 80-97% Clean markdown, strip nav/ads/scripts
Context Mode 98% External SQLite storage for outputs
Lazy Loading 91% Load schemas on-demand
Semantic Search 91% Natural language tool discovery

Token Comparison

Metric Before After Savings
Tool List ~13,500 tokens ~2,700 tokens 80%
Web Fetch ~8,000 tokens ~2,000 tokens 75%
Tool Output ~5,000 tokens ~50 tokens 98%
Full Workflow ~200,000 tokens ~30,000 tokens 85%

Optimization Tools

Tool Usage Tokens
quick_fetch Ultra-fast title + summary ~25-300
fetch_web_content Clean markdown with tracking ~2,000
fetch_structured Article/product/table ~1,500
ctx_store_output Store output externally ~50
tools_minimal List without full schemas ~2,000
semantic_search "search the web" → searxng_search ~500

Usage Examples

# Before: Fetch raw HTML (~8000 tokens)
fetch("https://example.com")  # Returns bloated HTML

# After: Optimized fetch (~300 tokens)
quick_fetch(url="https://example.com", max_tokens=1500)
# Returns: {title: "Example", summary: "...", tokens: 300}

# Store large outputs externally (98% reduction)
ctx_store_output(
    tool_name="github_repo",
    arguments={"owner": "anthropics"},
    output={"repo": "claude-code", "stars": 15000}
)
# Returns: {"ref": "@ctx:default:abc123", "size_bytes": 54}
# Instead of storing 500+ tokens, just store the reference

Claude Code Optimization

Model Selection Strategy

Use the right model for the right task:

Model Best For Cost When to Use
Sonnet Most coding $3/1M tokens Default choice, ~60% cheaper
Haiku Code review, docs $0.25/1M tokens Routine tasks, fixes
Opus Complex refactoring $15/1M tokens Architecture, deep debugging

Recommended Settings

Add to ~/.zshrc or ~/.bashrc:

# Model Settings
claude config set --claude-code-subagent-model sonnet
export HAIKU_MODEL=haiku

# Thinking Token Limit (~70% savings)
# Default: 32,000 tokens
# Recommended: 10,000 tokens
export MAX_THINKING_TOKENS=10000

# Compaction Settings (better performance)
# Default: 95% context before compact
# Recommended: 50% for more working room
export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50

# MCP Server Limit
# Keep under 10 MCP servers, 80 total tools
# More = reduced effective context window

Quick Commands

Command Purpose
/cost Monitor token usage and costs
/clear Free context reset between tasks
/compact Manual compaction at breakpoints
/context Check current context usage

MCP Server Best Practices

Warning: Each MCP server adds tool definitions to context. Excessive servers reduce effective context from 200k to ~70k.

Recommended: Keep under 10 MCP servers, 80 total tools.

10 Strategies to Reduce MCP Token Bloat

  1. Design tools with intent — Single purpose, clear inputs/outputs
  2. Cache aggressively — Identical queries hit cache
  3. Minimize server usage at runtime — Enable only when needed
  4. Group tools by domain — Logical grouping reduces confusion
  5. Deploy subagents — Route routine tasks to Haiku
  6. Just-in-time context loading — Load schemas on-demand
  7. Externalize computational results — Store large outputs
  8. Apply advanced data filtering — Filter at extraction time
  9. Externalize cross-cutting concerns — Centralize auth/errors
  10. Keep tools lean — Runtime handles concerns centrally

Cost Comparison

Scenario Before After Savings
1 hour coding $2.50 $0.75 70%
1 day research $8.00 $2.40 70%
1 week project $35.00 $10.50 70%

All Tools (100+)

🌐 Web Search & Scraping (10)

Tool Description
searxng_search Web search via SearXNG (Pi5)
search_images Image search
search_news News search
searxng_health Check SearXNG status
fetch_web_content Clean markdown extraction
fetch_structured Article/product/table extraction
quick_fetch Ultra-fast title + summary
scrape_dynamic JavaScript-heavy pages (Playwright)
firecrawl_scrape Advanced scraping
webclaw_extract_article Article extraction

🐙 GitHub (6)

Tool Description
github_repo Repository information
github_readme README content
github_issues List issues
github_commits List commits
github_search_repos Search repositories
github_file_content Get file content

📺 YouTube (6)

Tool Description
youtube_transcript Get transcript
youtube_transcript_timed Timestamped transcript
youtube_search Search videos
youtube_video_info Video metadata
youtube_batch_transcribe Batch transcription
youtube_summarize Summarize transcript

📰 Hacker News (6)

Tool Description
hackernews_top Top stories
hackernews_new Newest stories
hackernews_best Best stories
hackernews_ask Ask HN
hackernews_show Show HN
hackernews_get_comments Get comments

💻 Code Execution (4)

Tool Description
run_code Sandboxed execution (Python/JS/Bash)
run_python_snippet Python with common imports
test_code_snippet Test code output

📊 Data & Charts (11)

Tool Description
pandas_create Create DataFrame
pandas_filter Filter data
pandas_aggregate Aggregate/group data
pandas_correlation Compute correlation
pandas_outliers Detect outliers
plot_line Line chart
plot_bar Bar chart
plot_pie Pie chart
plot_scatter Scatter plot
plot_histogram Histogram
generate_chart_spec Ant Design spec

🧠 Engineering Intelligence (17)

Tool Description
engi_task_classify Classify task type
engi_repo_scope_find Find relevant files
engi_flow_summarize Get execution flow
engi_bug_trace Pinpoint bug causes
engi_implementation_plan Generate implementation plan
engi_poc_plan Scaffold POC
engi_impact_analyze Estimate blast radius
engi_test_select Select minimum tests
engi_doc_context_build Build documentation
engi_doc_update_plan Plan docs updates
engi_memory_checkpoint Save task state
engi_memory_restore Restore checkpoint
thinking_session_create Create thinking session
thinking_step Add reasoning step
thinking_summary Get summary
analyze_problem Structured analysis

⚡ Optimization Tools (14)

Tool Description
get_token_stats Token optimization stats
quick_fetch Minimal token fetch
fetch_web_content Optimized extraction
fetch_structured Structured extraction
fetch_with_selectors CSS selector extraction
ctx_store_output Store output externally
ctx_get_output Retrieve stored output
ctx_search Search stored outputs
ctx_session_overview Session summary
ctx_stats Context mode stats
tools_minimal Lazy tool list
tools_describe Load schemas on-demand
tools_search Search tools
semantic_search Natural language search

💾 Files & HuggingFace (10)

Tool Description
file_read Read file
file_write Write file
file_list List directory
file_search Search files
huggingface_search_models Search models
huggingface_search_datasets Search datasets
huggingface_model_info Model info
huggingface_trending Trending models
markitdown_html_to_md HTML → Markdown
markitdown_url_to_md URL → Markdown

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                      Claude Code                                  │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │  MCP Servers (< 10 recommended)                            │  │
│  │                                                            │  │
│  │  • mcp-server (83 tools) → Port 7710                    │  │
│  │  • github (10 tools) → NPX                               │  │
│  │  • memory (5 tools) → NPX                                 │  │
│  │  • sentry (5 tools) → NPX                                │  │
│  └───────────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Docker Services (Local)                       │
│                                                                  │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐         │
│  │ MCP Server   │  │ PostgreSQL   │  │ Redis        │         │
│  │ :7710        │  │ :7173       │  │ :7174        │         │
│  └──────────────┘  └──────────────┘  └──────────────┘         │
│                                                                  │
│  ┌──────────────┐  ┌──────────────┐                           │
│  │ ChromaDB     │  │ Firecrawl    │                           │
│  │ :8000        │  │ :7172        │                           │
│  └──────────────┘  └──────────────┘                           │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Remote (Pi5)                                  │
│                                                                  │
│  ┌──────────────┐                                               │
│  │ SearXNG      │                                               │
│  │ :7171        │                                               │
│  │ (Search API) │                                               │
│  └──────────────┘                                               │
└─────────────────────────────────────────────────────────────────┘

Token Flow

┌─────────────────────────────────────────────────────────────────┐
│                    Before Optimization                           │
│                                                                  │
│  Tool Schemas: 90 tools × 150 tokens = 13,500 tokens           │
│  Web Fetch: ~8,000 tokens per page                             │
│  Tool Outputs: Full JSON in context                            │
│  Total: ~200,000 tokens per session                            │
└─────────────────────────────────────────────────────────────────┘

                              ↓

┌─────────────────────────────────────────────────────────────────┐
│                    After Optimization                            │
│                                                                  │
│  Tool Schemas: 64 tools × 42 tokens = 2,700 tokens (-80%)    │
│  Web Fetch: Quick fetch with token budget = ~300 tokens (-96%)│
│  Tool Outputs: External reference = ~50 tokens (-98%)            │
│  Total: ~30,000 tokens per session (-85%)                      │
└─────────────────────────────────────────────────────────────────┘

Essential MCP Servers

We recommend these additional MCP servers for maximum productivity:

Must-Have (⭐⭐⭐)

Server Description Setup
GitHub Repository, issues, PRs, commits npx -y @modelcontextprotocol/server-github
Memory Persistent knowledge across sessions npx -y @modelcontextprotocol/server-memory
Sentry Error tracking and debugging npx -y @modelcontextprotocol/server-sentry

Recommended (⭐⭐)

Server Description Setup
Cloudflare Workers, KV, R2, D1 npx -y @modelcontextprotocol/server-cloudflare
Slack Channel messaging npx -y @modelcontextprotocol/server-slack
PostgreSQL Database queries npx -y @modelcontextprotocol/server-postgres
Puppeteer Browser automation npx -y @modelcontextprotocol/server-puppeteer

Complete Configuration

{
  "mcpServers": {
    "mcp-server": {
      "command": "docker",
      "args": ["exec", "-i", "mcp-server", "python", "-c", "from mcp_server.server import run; run()"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"]
    },
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    },
    "sentry": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sentry"]
    },
    "cloudflare": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-cloudflare"]
    }
  }
}

Total tools: ~110 tools across 5 servers


Docker Services

Service Port Description
MCP Server 7710 Main MCP protocol server (83 tools)
SearXNG 7171 Self-hosted web search (Pi5)
Firecrawl 7172 Advanced web scraping
PostgreSQL 7173 Database for persistence
Redis 7174 Cache and job queue
ChromaDB 8000 Vector database for RAG

Installation

Prerequisites

  • Docker & Docker Compose
  • Node.js (optional, for NPX MCPs)
  • Pi5 IP (for remote SearXNG, optional)

Steps

# 1. Clone
git clone https://github.com/simpletoolsindia/extra_skills_mcp_tools.git
cd extra_skills_mcp_tools

# 2. Run installer (follow prompts)
./install-claude-code.sh

# 3. Enter Pi5 IP when prompted (default: 192.168.0.2)
#    Or press Enter to skip (SearXNG will be unavailable)

# 4. Restart Claude Code
claude

# 5. Verify
docker compose -f docker-compose.local.yml ps

Manual Setup

# Start Docker services
docker compose -f docker-compose.local.yml up -d

# Add to ~/.claude/settings.json
cat >> ~/.claude/settings.json << 'EOF'
{
  "mcpServers": {
    "mcp-server": {
      "command": "docker",
      "args": ["exec", "-i", "mcp-server", "python", "-c", "from mcp_server.server import run; run()"]
    }
  }
}
EOF

Configuration

Environment Variables

# Pi5 (Remote) SearXNG
export SEARXNG_BASE_URL=https://your-pi5-ip:7171

# Local Ollama (optional)
export OLLAMA_BASE_URL=http://localhost:11434

# PostgreSQL
export POSTGRES_HOST=localhost
export POSTGRES_PORT=7173
export POSTGRES_DB=mcp_server
export POSTGRES_USER=mcp_user
export POSTGRES_PASSWORD=postgres

# Redis
export REDIS_HOST=localhost
export REDIS_PORT=7174

# Claude Code Optimization
export MAX_THINKING_TOKENS=10000
export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50

Pi5 (Remote) Setup

For remote SearXNG on Pi5:

# On Pi5
git clone https://github.com/simpletoolsindia/extra_skills_mcp_tools.git
cd extra_skills_mcp_tools
./start-remote.sh

Then enter Pi5 IP during installation.


Commands

# Start all services
docker compose -f docker-compose.local.yml up -d

# Stop all services
docker compose -f docker-compose.local.yml down

# View logs
docker compose -f docker-compose.local.yml logs -f mcp-server

# Rebuild after changes
docker compose -f docker-compose.local.yml up -d --build

# Quick restart
./start.sh    # Start
./stop.sh     # Stop

Testing

# Test token optimization
docker exec mcp-server python -c "
from src.mcp_server.server import _get_token_stats
import json
print(json.dumps(_get_token_stats(), indent=2))
"

# Test web search
docker exec mcp-server python -c "
from src.mcp_server.tools.searxng import search
print(search('MCP token optimization', limit=3))
"

# Test web fetch
docker exec mcp-server python -c "
from src.mcp_server.tools.web_fetch_optimized import quick_fetch
result = quick_fetch('https://example.com', max_tokens=500)
print(f'Title: {result[\"title\"]}')
print(f'Tokens: {result[\"tokens_used\"]}')
"

# Test MCP via network
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_token_stats","arguments":{}},"id":1}' | nc localhost 7710

Troubleshooting

SearXNG returns 403

# Ensure Pi5 SearXNG has limiter disabled
ssh pi5 "docker exec searxng sed -i 's/limiter: true/limiter: false/' /etc/searxng/settings.yml && docker restart searxng"

SSL Certificate Error

# Rebuild MCP server (includes ca-certificates)
docker compose -f docker-compose.local.yml up -d --build mcp-server

ChromaDB Connection Error

# Check and restart
docker compose restart chromadb

High Token Usage

  1. Use /cost to monitor
  2. Enable only needed MCP servers
  3. Use quick_fetch instead of fetch_web_content
  4. Store large outputs with ctx_store_output
  5. Compact at 50% with /compact

Documentation

Document Description
README.md This file
TOKEN_OPTIMIZATION.md Technical implementation details
OPTIMIZATION_GUIDE.md Claude Code settings & strategies
ESSENTIAL_MCP_SERVERS.md Curated MCP server list

Research Sources


License

MIT License


Star History

Star History Chart


<p align="center"> <strong>Built with ❤️ for AI-powered development</strong> </p>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选