Skip to main content
Glama
Ayesha0300

LinkedIn Profile Scraper MCP Server

by Ayesha0300

get_profile

Extract LinkedIn profile data from any public profile URL to retrieve professional information in structured JSON format.

Instructions

Get LinkedIn profile data for a given profile URL.

Args:
    linkedin_url: The LinkedIn profile URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkedin_urlYes

Implementation Reference

  • The handler function for the 'get_profile' tool, decorated with @mcp.tool() for registration. It calls the helper to fetch data and returns formatted JSON or error message.
    @mcp.tool()
    async def get_profile(linkedin_url: str) -> str:
        """Get LinkedIn profile data for a given profile URL.
    
        Args:
            linkedin_url: The LinkedIn profile URL.
        """
        data = await get_linkedin_data(linkedin_url)
        if not data:
            return "Unable to fetch LinkedIn profile data."
        return json.dumps(data, indent=2)
  • Helper utility that performs the actual HTTP request to the LinkedIn profile scraping API and returns the raw data or None on failure.
    async def get_linkedin_data(linkedin_url: str) -> dict[str, Any] | None:
        """Fetch LinkedIn profile data using the Fresh LinkedIn Profile Data API."""
        params = {
            "linkedin_url": linkedin_url,
            "include_skills": "true",
            "include_certifications": "false",
            "include_publications": "false",
            "include_honors": "false",
            "include_volunteers": "false",
            "include_projects": "false",
            "include_patents": "false",
            "include_courses": "false",
            "include_organizations": "false",
            "include_profile_status": "false",
            "include_company_public_url": "false"
        }
        headers = {
            "x-rapidapi-key": RAPIDAPI_KEY,
            "x-rapidapi-host": RAPIDAPI_HOST
        }
        async with httpx.AsyncClient() as client:
            try:
                response = await client.get(
                    f"{LINKEDIN_API_BASE}/get-linkedin-profile",
                    headers=headers,
                    params=params,
                    timeout=30.0
                )
                response.raise_for_status()
                return response.json()
            except Exception:
                return None
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions retrieving data but lacks details on permissions, rate limits, error handling, or output format. This is a significant gap for a tool with zero annotation coverage, though it at least correctly implies a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose in the first sentence, followed by a structured Args section. It avoids redundancy and is appropriately sized for a single-parameter tool, though the formatting could be slightly more polished.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and parameter but lacks details on behavioral traits and output, which are important for an agent to use it effectively without annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only one parameter and 0% schema description coverage, the description compensates by explaining the parameter's purpose ('The LinkedIn profile URL') in the Args section. This adds meaningful context beyond the bare schema, though it could specify format constraints (e.g., URL validation).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('LinkedIn profile data'), and specifies the input requirement ('for a given profile URL'). However, with no sibling tools mentioned, it cannot demonstrate differentiation from alternatives, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or contextual constraints. It only states what the tool does, not when it should be applied, leaving usage decisions entirely to the agent's inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ayesha0300/linkedin-profile-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server