MCP Server Practice logo

MCP Server Practice

by mybarefootstory

This repository implements Model Context Protocol (MCP) servers for LinkedIn profile scraping and weather data retrieval. The MCP framework facilitates seamless integration and communication between AI services.

View on GitHub

Last updated: N/A

What is MCP Server Practice?

This project provides two MCP servers: one for scraping LinkedIn profile data using the Fresh LinkedIn Profile Data API, and another for retrieving weather alerts and forecasts using the National Weather Service (NWS) API. These servers use the MCP framework to enable easy integration with other AI services.

How to use MCP Server Practice?

To use these servers, clone the repository, install the required dependencies (httpx, python-dotenv, mcp), set up your RapidAPI key in a .env file, and then run the individual server scripts. The LinkedIn server uses the get_profile tool, while the Weather server uses get_alerts and get_forecast tools.

Key features of MCP Server Practice

  • LinkedIn profile scraping

  • Weather data retrieval

  • MCP framework integration

  • Asynchronous HTTP requests

  • Environment variable management

Use cases of MCP Server Practice

  • Automated profile data extraction

  • Real-time weather alerts

  • Integration with AI assistants

  • Building data pipelines

  • Developing smart applications

FAQ from MCP Server Practice

What is MCP?

MCP stands for Model Context Protocol, a framework for seamless integration and communication between AI services.

What APIs are used?

The LinkedIn server uses the Fresh LinkedIn Profile Data API, and the Weather server uses the National Weather Service (NWS) API.

What are the dependencies?

The dependencies are Python 3.7+, httpx, python-dotenv, and mcp.

How do I set up the environment variables?

Create a .env file in the root directory and add your RapidAPI key as RAPIDAPI_KEY=your_rapidapi_key_here.

How do I run the servers?

Navigate to the server directory and run the python script. Ensure you have installed all dependencies and set up the environment variables correctly.