Movie Search MCP Server
README.md
# ๐ฌ Movie Search MCP Server
A simple **Model Context Protocol (MCP)** server built with the official MCP TypeScript SDK.
This project demonstrates how to create a custom MCP server, register tools, validate input using Zod, and test everything using the MCP Inspector.
---
## ๐ Features
- Search movies by title
- JSON-based movie database
- Input validation using Zod
- MCP Tool registration
- STDIO transport
- Tested using MCP Inspector
---
## ๐ ๏ธ Tech Stack
- Node.js
- MCP SDK
- Zod
- JavaScript (ES Modules)
- MCP Inspector
---
## ๐ Project Structure
```text
movie-search-mcp-server/
โ
โโโ tools/
โ โโโ searchMovie.js
โโโ movies.json
โโโ server.js
โโโ package.json
โโโ README.md
```
---
## ๐ฆ Installation
Clone the repository
```bash
git clone https://github.com/YOUR_USERNAME/movie-search-mcp-server.git
```
Go to the project
```bash
cd movie-search-mcp-server
```
Install dependencies
```bash
npm install
```
Run the server
```bash
npm start
```
---
## ๐งช Testing
Launch MCP Inspector
```bash
npx @modelcontextprotocol/inspector@latest
```
Connect using
- Transport: STDIO
- Command: node
- Arguments: server.js
---
## ๐ Example Tool
### searchMovie
Input
```json
{
"title": "Leo"
}
```
Output
```json
{
"found": true,
"movie": {
"title": "Leo",
"year": 2023,
"language": "Tamil",
"hero": "Vijay"
}
}
```
---
## ๐ Concepts Learned
- Model Context Protocol (MCP)
- MCP Server
- MCP Tools
- STDIO Transport
- Zod Validation
- JSON Data Handling
- MCP Inspector
- Node.js File System
---
## ๐จโ๐ป Author
Mohanaprasanth KThis server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessNo issues