Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A local MCP server that connects Claude Desktop to execute custom local code, such as generating custom greetings.

README.md

My First MCP Server 🚀

Welcome! I built this project to explore and implement my own Model Context Protocol (MCP) server. This server connects a local development environment to an AI assistant (Claude Desktop), allowing the AI to execute custom local code.

🧠 What is MCP?

The Model Context Protocol (MCP) is an open standard introduced by Anthropic. Think of it like a USB-C cable for AI models.

Normally, Large Language Models (LLMs) are isolated in the cloud. They can't see your local files, interact with your databases, or run your internal scripts. MCP solves this by providing a standardized, secure way for AI models to connect to external tools and data sources.

🎯 Purpose and Use Cases

The purpose of this project is to demonstrate how to break an AI out of its isolated bubble. By building an MCP server, we give the AI a "menu" of tools it can use.

Why is this powerful?

  • Local File Access: You can build tools that let the AI read your local codebase or logs.
  • Live Data Fetching: The AI can trigger API calls (like fetching live weather, stock prices, or database queries) and read the responses.
  • Task Automation: The AI can execute local scripts on your behalf.

This specific project features a Greeting Tool that takes a user's name as input from the AI and returns a custom formatted greeting generated entirely on the local machine.

---

⚙️ Step-by-Step Setup Guide

If you want to run this MCP server on your own machine, follow these instructions carefully.

Prerequisites

  1. Node.js (v18 or higher) installed on your machine.
  2. Claude Desktop App installed and logged in.

1. Installation

Clone this repository to your local machine and install the required dependencies:

git clone <github-repo-url>
# 1. Create a new folder and move into it
mkdir my-first-mcp
cd my-first-mcp

# 2. Initialize a blank Node.js project (creates a package.json file)
npm init -y

# 3. Install the official MCP SDK
npm install @modelcontextprotocol/sdk

# 4. Install TypeScript tools for development
npm install -D typescript @types/node ts-node

# 5. Create a basic TypeScript configuration file
npx tsc --init

2. Compile the TypeScript Code
This project is written in modern TypeScript. You need to compile it into JavaScript so Node.js can run it.


Run the following command in your terminal:

Bash
npx tsc
Note: This will generate a new dist folder containing the compiled index.js file.

3. Get Your Absolute Path
Claude Desktop needs to know exactly where this compiled file lives on your computer.

Open the new dist folder.

Right-click on index.js and select Copy Path (You need the full absolute path, e.g., C:\Users\Name\Desktop\my-first-mcp\dist\index.js).

4. Configure Claude Desktop
You need to link your local server to the Claude app.

Open the Claude Desktop app.

Go to Settings > Developer > Edit Config.

This will open a file named claude_desktop_config.json. Add the following configuration, replacing the args path with the absolute path you copied in the previous step:

JSON
{
  "mcpServers": {
    "my-first-mcp": {
      "command": "node",
      "args": ["C:/YOUR/ABSOLUTE/PATH/HERE/dist/index.js"],
      "env": {}
    }
  }
}
Windows Users: Ensure your path uses forward slashes / or double backslashes \\.

5. Restart and Test
Fully close Claude Desktop (ensure it is quit from the system tray).

Reopen the application.

Start a new chat. You should see a small "plug" or "hammer" icon indicating local tools are connected.

Prompt Claude: "Use your tools to greet [Your Name]."

Watch as Claude routes the request to your local Node.js server and returns the custom response!

Built by Imran



See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.