mcpField
πŸ€–
πŸ€– Model Context Protocol (MCP) Examples

πŸ€– Model Context Protocol (MCP) Examples

Local
github.com/sur950Developer Tools0Updated 76w ago

About πŸ€– Model Context Protocol (MCP) Examples

Model Context Protocol (MCP) Examples is a collection of modular MCP server examples built with the TypeScript SDK for MCP developers. Modules run independently, while a root launcher registers and starts them; examples include code analysis and boilerplate generation.

Key features

  1. 01Modular MCP server examples
  2. 02Dynamic module registration and launch
  3. 03Analyze local code repositories
  4. 04Generate and extend starter codebases

Use cases

  1. 01Explore a local code repository
  2. 02Generate starter project code
  3. 03Debug servers with MCP Inspector

MCP support

Modules register tools and prompts with MCP and use Streamable HTTP or STDIO transports. The root launcher dynamically registers and starts the MCP servers.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

πŸ€– Model Context Protocol (MCP) Examples

This repository contains modular MCP agent servers built using the Model Context Protocol TypeScript SDK.
Each subdirectory in src/ is a self-contained MCP server with tools and prompts (e.g., code analysis, summarization, etc.).

✨ The root src/index.ts dynamically registers and launches all individual servers.


πŸ“¦ Structure

src/
β”œβ”€β”€ index.ts         # Main launcher to register all MCP servers
β”œβ”€β”€ code-analysis/   # Analyzes local code repositories
β”‚   β”œβ”€β”€ tools.ts     # Tool implementations
β”‚   β”œβ”€β”€ server.ts    # Registers tools & prompts with MCP
β”‚   β”œβ”€β”€ utils.ts     # Helper functions (file reading, structure)
β”‚   β”œβ”€β”€ prompt.ts    # Prompt handler definitions
β”‚   └── README.md    # Module-specific usage docs
...

πŸš€ Getting Started

1. Install dependencies
npm install
2. (Optional) Set up local .env
echo "PORT=3000" > .env
3. Start the MCP server
npm run dev

The server will run at: http://localhost:3000/mcp


πŸ§ͺ Debugging / Manual Testing

You can test the server using MCP Inspector, a UI debugger for MCP-based servers.

Start the MCP Inspector (in another terminal)
npm run debug

Then open: πŸ‘‰ http://127.0.0.1:6274 and connect to http://localhost:3000/mcp using Streamable HTTP.


🧩 Supported MCP Modules

FolderDescriptionTransport
code-analysisAnalyze and explore local code repositoriesStreamable HTTP
boilerplate-genGenerate starter codebases and incrementally add featuresSTDIO
(more coming soon)......

πŸ“œ License

MIT License Copyright (c) 2025 suresh konakanchi

Permission is hereby granted,
free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice
(including the next paragraph) shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.