Inmovilla MCP Server

Inmovilla MCP Server

Enables interaction with the Inmovilla real estate CRM platform to manage properties, clients, owners, and retrieve platform enumerations through natural language.

Category
Visit Server

README

mcp-inmovilla

A Model Context Protocol (MCP) server that provides tools to interact with the Inmovilla API. This server enables LLMs to manage properties, clients, owners, and retrieve various enumerations from the Inmovilla real estate platform.

About MCP

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Learn more:

Installation

1. Clone and Install Dependencies

git clone <repository-url>
cd mcp-inmovilla
npm install

2. Build the Project

npm run build

3. Configure Environment Variables

Create a .env file in the project root with the following variables:

INMOVILLA_API_TOKEN=your_inmovilla_token_here
OPENAI_API_KEY=your_openai_api_key_here

Obtaining the Inmovilla API Token

To get your Inmovilla API token:

  1. Log in to Inmovilla CRM
  2. Navigate to Ajustes > Opciones > Token para API Rest
  3. Generate your token
  4. Copy the token to your .env file

Note: Tokens will automatically expire after 3 months of inactivity.

Obtaining the OpenAI API Key

  1. Sign up or log in to OpenAI Platform
  2. Navigate to API keys section
  3. Create a new API key
  4. Copy the key to your .env file

4. Start the Server

npm start

The MCP server will start on port 1337 at http://localhost:1337/mcp.

Project Structure

mcp-inmovilla/
├── src/
│   ├── tools/              # MCP Tools for Inmovilla API
│   │   ├── CreateClientTool.ts
│   │   ├── CreateOwnerTool.ts
│   │   ├── CreatePropertyTool.ts
│   │   ├── DeleteClientTool.ts
│   │   ├── DeleteOwnerTool.ts
│   │   ├── GetClientTool.ts
│   │   ├── GetEnumTool.ts
│   │   ├── GetOwnerTool.ts
│   │   ├── GetPropertyExtraInfoTool.ts
│   │   ├── GetPropertyLeadsTool.ts
│   │   ├── GetPropertyTool.ts
│   │   ├── ListPropertiesTool.ts
│   │   ├── SearchClientsTool.ts
│   │   ├── UpdateClientTool.ts
│   │   ├── UpdateOwnerTool.ts
│   │   └── UpdatePropertyTool.ts
│   └── index.ts            # Server entry point
├── python_tester/          # Python client for testing
│   ├── openai2mcp_test.py  # OpenAI chatbot client
│   └── requirements.txt    # Python dependencies
├── package.json
├── tsconfig.json
├── .env                    # Environment variables (create this)
└── README.md

Python Testing Client

The python_tester folder contains a Python script that connects to the MCP server and allows you to interact with it using an OpenAI-powered chatbot.

Setup

  1. Ensure the MCP server is running (see step 4 above)

  2. Install Python dependencies:

    cd python_tester
    pip install -r requirements.txt
    
  3. Run the chatbot:

    python3 openai2mcp_test.py
    

How It Works

The Python client:

  • Connects to the MCP server via Streamable HTTP on http://localhost:1337/mcp
  • Uses the OpenAI API (GPT-4) to process natural language queries
  • Automatically discovers and calls available MCP tools
  • Provides a console-based chat interface

Example Usage

You: List all available properties
AI: [Calls list_properties tool and returns results]

You: Get information about property with reference ABC123
AI: [Calls get_property tool with the reference and returns property details]

You: What types of properties are available?
AI: [Calls get_enum tool for property types and returns the list]

Type quit or exit to end the chat session.

Available Tools

The MCP server provides the following tools for interacting with the Inmovilla API:

Properties

  • create_property - Create a new property or prospect
  • get_property - Get property details by code or reference
  • get_property_extra_info - Get extra information (portal publication info, leads)
  • get_property_leads - Get leads for properties within a date range
  • list_properties - List all properties
  • update_property - Update an existing property

Clients

  • create_client - Create a new client
  • get_client - Get client details by code
  • search_clients - Search for clients
  • update_client - Update an existing client
  • delete_client - Delete a client

Owners

  • create_owner - Create a new owner
  • get_owner - Get owner details
  • update_owner - Update an existing owner
  • delete_owner - Delete an owner

Enumerations

  • get_enum - Get enum values for various categories (calidades, tipos, paises, ciudades, zonas)

Development

Watch Mode

To automatically rebuild on file changes:

npm run watch

Adding New Tools

Tools are automatically loaded from the src/tools/ directory. Each tool extends the MCPTool class and defines:

  • name - Tool identifier
  • description - What the tool does
  • schema - Input parameters using Zod
  • execute() - Tool implementation

API Documentation

For detailed information about the Inmovilla API endpoints and parameters, refer to Documentación API REST v1.html in the project root.

License

[Your License Here]

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured