# How to use MPS Server with 24 lines of gradle

**URL:** <https://d.strumenta.community/t/how-to-use-mps-server-with-24-lines-of-gradle/653>\
**Category:** Language Workbenches\
**Created:** [May 19, 2020, 7:29am UTC](https://d.strumenta.community/t/how-to-use-mps-server-with-24-lines-of-gradle/653 "2020-05-19T07:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftomassetti](https://d.strumenta.community/user_avatar/d.strumenta.community/ftomassetti/32/8_2.png) [@ftomassetti](https://d.strumenta.community/u/ftomassetti)\
**Post date:** [May 19, 2020, 7:29am UTC](https://d.strumenta.community/t/how-to-use-mps-server-with-24-lines-of-gradle/653/1 "2020-05-19T07:29:36Z")

</div>

Hi,  
Recently I have been working on making easier to use the MPS Server. For that I created a gradle plugin.

Now, the MPS Server per-se permits to expose the models of a running MPS through REST APIs and WebSockets. You can use it to get the information of your models and create some visualization or even modifying your models in a web application. If you want to build editors on top of it you can use WebEditKit, the companion project of MPS Server.

This is a short demo:

https://www.loom.com/embed/8284b091209442638ba00c0d5fc02199

And this is the build.gradle you need:

```
	buildscript {
    repositories {
        jcenter()
        maven { url 'https://projects.itemis.de/nexus/content/repositories/mbeddr' }
    }
}

plugins {
    id 'com.strumenta.mpsserver' version "0.1.0-snapshot"
}

repositories {
	mavenCentral()
	maven {
		url 'https://dl.bintray.com/strumenta/strumenta-oss-maven'
	}
	maven {
		url 'https://projects.itemis.de/nexus/content/groups/OS/'
	}
}

mpsserver {
	mpsServerVersion = '1.1.0-rc1'
}

```

At this point, you can run `./gradlew launchMpsServer` and that is it!

For example, this is what you could get:

 ![api](https://community.strumenta-ops.com/uploads/default/original/1X/f549b62d9ff9ddfb286f2dae23bf8af730fc7501.png)
