# How to find MCP servers in your codebase and clusters

DevFeed: [How to find MCP servers in your codebase and clusters](<https://devfeed.tech/articles/how-to-find-mcp-servers-in-your-codebase-and-clusters-104672.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/10/27/how-to-find-mcp-servers-in-your-codebase-and-clusters/>)

Author: Ritesh Patel

Published: 2026-10-27T07:00:00Z

Content type: tutorial

Language: en

Sources: [Nirmata](<https://devfeed.tech/sources/nirmata.md>)

Topics: [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Threat monitoring](<https://devfeed.tech/topics/threat-monitoring.md>), [Gke](<https://devfeed.tech/topics/gke.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-governance](<https://devfeed.tech/tags/ai-governance.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [container-image](<https://devfeed.tech/tags/container-image.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [inventory](<https://devfeed.tech/tags/inventory.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-servers](<https://devfeed.tech/tags/mcp-servers.md>), [pods](<https://devfeed.tech/tags/pods.md>), [scopes](<https://devfeed.tech/tags/scopes.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

A repository search finds only project-scoped MCP servers in `.mcp.json`; local and user-scoped servers are stored in `~/.claude.json`, so inventory each relevant machine with `claude mcp list` and inspect unexpected entries with `claude mcp get`. Interactive Claude Code sessions ask before using project servers, while `claude -p` and Agent SDK sessions load them without asking. In Kubernetes, list pods across namespaces and compare container images with an approved list; the docs cited define no MCP-specific image or label convention. General-purpose images may conceal what runs inside, and labels help only where teams apply them. These checks provide a starting inventory, not proof that nothing is running.

## Source excerpt

Find MCP servers in repos with .mcp.json and claude mcp list, then in clusters by listing pods and images. Covers scopes, approvals and shadow servers.