mcp-developer-context-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-developer-context-server show me the project structure and find where registerTool is used"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-developer-context-server
MCP Server that Exposes Project Context, Codebase Search, Safe Commands & API Spec Summary for Any Model Or MCP Client
Prerequisites
Node.js 20 or later
Related MCP server: AI Developer Workspace MCP Server
Installation
git clone
cd mcp-developer-context-server
npm installConfiguration
Optional environment variables:
Variable | Description |
| Directory treated as the project root. Defaults to the process working directory. |
| Comma-separated list of commands allowed by the run-command tool. If unset, a default list is used (e.g. |
Running
Build and start the server:
npm run build
npm startFor development without building:
npm run devThe server runs over stdio and waits for client connections. Stop with Ctrl+C.
Testing with MCP Inspector
Run the server under the MCP Inspector to exercise all capabilities:
npm run build
npm run inspectorOpen http://localhost:6274 in a browser. Use the Tools, Resources, and Prompts tabs to invoke capabilities and verify responses.
Tools: expected behavior
Tool | Example input | Expected outcome |
search-codebase | pattern: | Lines of the form |
project-structure | (none) or depth: | Directory tree and a line listing key files at root (e.g. package.json, tsconfig.json). |
run-command | command: | Exit code and command stdout/stderr. |
run-command | command: | Message: "Command not allowed." |
fetch-api-spec | url: a valid OpenAPI JSON URL | Summary with operations (method, path, operationId) and schema names. |
validate-json | json: | Pretty-printed JSON. |
validate-json | json: | Error message: "Invalid JSON" and parse details. |
Resources: expected behavior
Resource URI | Expected outcome |
project://manifest | JSON body of the project |
project://config | JSON with |
api://spec | Message asking for a |
api://spec?url= | Same summary format as the fetch-api-spec tool. |
Prompts: expected behavior
Prompt | Example arguments | Expected outcome |
code-review | code: a code snippet, focus: | Single user message containing review instructions and the provided code. |
api-usage | operationId: e.g. | Single user message requesting a client example for that operation. |
test-plan | module: e.g. | Single user message requesting unit test suggestions for the module. |
Cursor setup
Add the server to your Cursor MCP configuration (e.g. in Cursor settings or the configured MCP config file):
{
"mcpServers": {
"developer-context": {
"command": "node",
"args": ["/absolute/path/to/mcp-developer-context-server/dist/index.js"],
"env": {
"PROJECT_ROOT": "/path/to/your/project"
}
}
}
}Replace paths with your actual project and server locations. Restart or reload Cursor so it picks up the server.
Project structure
src/
index.ts Server entry; registers tools, resources, prompts; stdio transport.
lib/ Shared helpers: project root, manifest read, OpenAPI summary.
tools/ MCP tools: search-codebase, project-structure, run-command, fetch-api-spec, validate-json.
resources/ MCP resources: project manifest, project config, API spec.
prompts/ MCP prompts: code-review, api-usage, test-plan.Scripts
Script | Purpose |
| Compile TypeScript to |
| Run the compiled server. |
| Run the server from source with tsx. |
| Run the server under MCP Inspector (http://localhost:6274). |
| Run ESLint on |
| Run TypeScript compiler in check-only mode. |
Available Tools
5 toolsfetch-api-specFetch API specB
Fetch and summarize OpenAPI/Swagger from URL
Inputs: url (required).
project-structureProject structureC
Return directory tree or key files list
Inputs: depth.
run-commandRun commandC
Run an allowlisted command in project dir
Inputs: command (required).
search-codebaseSearch codebaseC
Search files by pattern with optional glob
Inputs: pattern (required), glob.
validate-jsonValidate JSONC
Validate or format a JSON string
Inputs: json (required), action.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct action: searching code, dumping project structure, running a command, fetching an API spec, and validating JSON. There is no realistic overlap that would cause misselection.
Four of five names follow a verb_noun pattern (search-codebase, run-command, fetch-api-spec, validate-json), but 'project-structure' is noun-only and breaks the pattern. Still readable and largely predictable.
Five tools is well within the ideal 3-15 range and each one covers a distinct developer-context need with no filler. The surface is tight and purposeful.
Coverage of search, structure, execution, and spec fetching is useful, but there is no explicit read-file/get-file-content operation, which is a core need for a developer-context server. 'fetch-api-spec' and 'validate-json' are also narrow, leaving notable gaps for common context-gathering workflows.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables file system operations, web scraping, and AI-powered search through MCP tools for use by LLM agents.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage local project files and Git operations through MCP tools, including file CRUD, search, Git status, recent commits, and project summaries.-
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to inspect files, search text, compare directories, read symbols, and apply structured edits against large codebases through bounded, local-first MCP tools.4Apache 2.0
- AlicenseAqualityCmaintenanceEnables Claude Code to read and search project files, inspect git status and history, generate commit messages, and produce tailored code review checklists through MCP tools.6MIT