If you've ever wondered why MCPs are loading in every Claude Code session and eating your context budget, this is your fix. The key insight: never put MCP servers in the global mcpServers section of ~/.claude.json. Instead, use project-level .mcp.json files so MCPs only load when you're actually working in that project. The skill walks through checking all three config locations (user config, project config, settings.json), moving servers to the right place, and cleaning up permission overrides that can silently re-enable things. It's essentially a field guide to the MCP config priority system, with ready-to-run Python snippets for each cleanup task.

skills.sh installs
505
GitHub stars
5.2K
last updated
Mar 26, 2026

Install

$ npx -y skills add libukai/awesome-agent-skills --skill mcp-config --agent claude-code

Installs into .claude/skills of the current project.

Files

If you've ever wondered why MCPs are loading in every Claude Code session and eating your context budget, this is your fix. The key insight: never put MCP servers in the global mcpServers section of ~/.claude.json. Instead, use project-level .mcp.json files so MCPs only load when you're actually working in that project. The skill walks through checking all three config locations (user config, project config, settings.json), moving servers to the right place, and cleaning up permission overrides that can silently re-enable things. It's essentially a field guide to the MCP config priority system, with ready-to-run Python snippets for each cleanup task.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/libukai/awesome-agent-skills
Category
AI & Agent Building
First seen
Jun 11, 2026

More from libukai/awesome-agent-skills

All 6
1gocallum avatarai-sdk-6-skillsgocallum/nextjs16-agent-skillsAI SDK 6 Beta overview, agents, tool approval, Groq (Llama), and Vercel AI Gateway. Key breaking changes from v5 and new patterns.484skills.sh installs
2pskoett avatarintent-framed-agentpskoett/pskoett-ai-skillsFrames coding-agent work sessions with explicit intent capture and drift monitoring. Use when a session transitions from planning/Q&A to implementation for codi437skills.sh installs
3unclecatvn avatarai-vibe-slidesunclecatvn/agent-skillsCreate beautiful, professional HTML or React slide decks ready for fullscreen presentation. Use this skill when the user wants to: create a PPT/slide/presentati424skills.sh installs
4gocallum avatarmcp-server-skillsgocallum/nextjs16-agent-skillsPattern for building MCP servers in Next.js with mcp-handler, shared Zod schemas, and reusable server actions.387skills.sh installs
5qodex-ai avatardeep-research-agentqodex-ai/ai-agent-skillsBuild agents specialized in conducting thorough research, gathering information from multiple sources, and synthesizing findings. Covers research planning, sour287skills.sh installs
6jorgealves avatarprompt-injection-scannerjorgealves/agent_skillsAudits agent skill instructions and system prompts for vulnerabilities to prompt hijacking and indirect injection. Use when designing new agent skills or before270skills.sh installs