mcp_starter
How to setup mcp server and mcp client.
Documentation
MCP Starter Project
What is MCP?
The Model Context Protocol (MCP) is a standard for building AI applications that can interact with external tools and APIs. It consists of two main components:
1. MCP Server: A Python service that defines and exposes tools/functions that can be called by AI models
2. MCP Client: A TypeScript/JavaScript client that connects to the MCP server and manages interactions between AI models and tools
Project Structure
mcp_starter/
├── mcp-server/ # Python MCP server implementation
│ ├── main.py # Server with documentation search tool
│ └── pyproject.toml # Python dependencies
└── mcp-clients/ # TypeScript MCP client implementation
├── index.ts # Express server with HuggingFace integration
└── package.json # Node.js dependenciesGetting Started
Prerequisites
- Python 3.11 or higher
- Node.js 18 or higher
- Hugging Face API key
- Serper API key for Google Search functionality
Setting Up the Server
1. Create a Python virtual environment and activate it:
cd mcp-server
python -m venv .venv
# On Windows
.venv\Scripts\activate2. Install dependencies:
pip install -e .3. Create a `.env` file in the `mcp-server` directory:
SERPER_API_KEY=your_serper_api_key_hereSetting Up the Client
1. Install Node.js dependencies:
cd mcp-clients
npm install2. Create a `.env` file in the `mcp-clients` directory:
HUGGINGFACE_API_KEY=your_huggingface_api_key_here3. Build the TypeScript code:
npm run buildRunning the Application
1. Start the MCP server:
cd mcp-server
python main.py2. In a new terminal, start the client server:
cd mcp-clients
node build/index.js ../mcp-server/main.pyUsing the API
The client exposes two endpoints:
- Health Check: `GET http://localhost:3000/health`
- Chat: `POST http://localhost:3000/chat`
Example chat request:
{
"query": "Search the langchain docs for RAG",
"sessionId": "user123"
}Features
- Documentation Search Tool: Search documentation for popular AI libraries:
- LangChain
- LlamaIndex
- OpenAI
- Conversation Management: Maintains chat history per session
- Tool Integration: Seamlessly integrates AI model responses with tool calls
- Error Handling: Robust error handling for API calls and tool execution
How It Works
1. The MCP server defines tools that can be called by AI models
2. The client connects to the MCP server and retrieves available tools
3. When a user sends a query:
Environment Variables
Server
- `SERPER_API_KEY`: API key for Google Search functionality
Client
- `HUGGINGFACE_API_KEY`: API key for accessing Hugging Face models
License
MIT License
Frequently asked questions
What is mcp_starter?
mcp_starter is How to setup mcp server and mcp client.
How do I install mcp_starter?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp_starter open source?
Yes — it is hosted on GitHub at https://github.com/sharmatriloknath/mcp_starter.
Related MCP tools
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Fay是一个帮助数字人(2.5d、3d、移动、pc、网页)或大语言模型(openai兼容、deepseek)连通业务系统的mcp框架。 JavaScript-based implementation. Trusted by 12000+ developers.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.
This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities JavaScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP